public static bool IsValidTargetToApplyDoT(BattleCharacter unit, uint spell) { if (unit == Core.Me.CurrentTarget) { return(false); } if (!unit.InLineOfSight()) { return(false); } if (unit.CombatTimeLeft() <= BardSettings.Instance.DontDotIfMultiDotTargetIsDyingWithinXSeconds && BardSettings.Instance.DontDotIfMultiDotTargetIsDyingWithinXSeconds != 0) { return(false); } return(!unit.HasAura(spell, true)); }