예제 #1
0
        protected void ApplyFriendlyBuff(WoWPlayer player, MonitoredSpell spell, string buffName = null)
        {
            if (buffName == null)
            {
                buffName = spell.Name;
            }

            if (spell.KnownSpell && !player.HaveBuff(buffName) &&
                player.GetDistance < spell.MaxRange)
            {
                player.TargetPlayer();
                spell.Cast();
            }
        }