Some refactoring of code. and some cleanups

This commit is contained in:
hondacrx
2019-09-21 12:11:16 -04:00
parent 7c405230cc
commit 35c06c09fd
214 changed files with 1235 additions and 1341 deletions
+3 -3
View File
@@ -350,7 +350,7 @@ namespace Scripts.Spells.Priest
if (aegis != null)
absorb += aegis.GetAmount();
absorb = (int)Math.Min(absorb, eventInfo.GetProcTarget().getLevel() * 125);
absorb = (int)Math.Min(absorb, eventInfo.GetProcTarget().GetLevel() * 125);
GetTarget().CastCustomSpell(SpellIds.DivineAegis, SpellValueMod.BasePoint0, absorb, eventInfo.GetProcTarget(), true, null, aurEff);
}
@@ -748,7 +748,7 @@ namespace Scripts.Spells.Priest
if (!caster.IsValidAttackTarget(target))
return SpellCastResult.BadTargets;
if (!caster.isInFront(target))
if (!caster.IsInFront(target))
return SpellCastResult.NotInfront;
}
else
@@ -757,7 +757,7 @@ namespace Scripts.Spells.Priest
if (!caster.HasAura(SpellIds.ThePenitentAura))
return SpellCastResult.BadTargets;
if (!caster.isInFront(target))
if (!caster.IsInFront(target))
return SpellCastResult.UnitNotInfront;
}
}