Some refactoring of code. and some cleanups
This commit is contained in:
@@ -496,7 +496,7 @@ namespace Scripts.Spells.Paladin
|
||||
if (!caster.IsValidAttackTarget(target))
|
||||
return SpellCastResult.BadTargets;
|
||||
|
||||
if (!caster.isInFront(target))
|
||||
if (!caster.IsInFront(target))
|
||||
return SpellCastResult.NotInfront;
|
||||
}
|
||||
}
|
||||
@@ -715,7 +715,7 @@ namespace Scripts.Spells.Paladin
|
||||
Unit target = GetExplTargetUnit();
|
||||
if (target)
|
||||
{
|
||||
if (!target.IsFriendlyTo(caster) || target.getAttackers().Empty())
|
||||
if (!target.IsFriendlyTo(caster) || target.GetAttackers().Empty())
|
||||
return SpellCastResult.BadTargets;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user