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(); } }