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
@@ -61,7 +61,7 @@ namespace Scripts.World
{
if (me.GetEntry() == CreatureIds.CenarionHoldIndantry)
Talk(GuardsConst.SaySilAggro, who);
SpellInfo spell = me.reachWithSpellAttack(who);
SpellInfo spell = me.ReachWithSpellAttack(who);
if (spell != null)
DoCast(who, spell.Id);
}
@@ -103,7 +103,7 @@ namespace Scripts.World
return;
// Make sure our attack is ready and we arn't currently casting
if (me.isAttackReady() && !me.IsNonMeleeSpellCast(false))
if (me.IsAttackReady() && !me.IsNonMeleeSpellCast(false))
{
//If we are within range melee the target
if (me.IsWithinMeleeRange(me.GetVictim()))
@@ -136,7 +136,7 @@ namespace Scripts.World
else
me.AttackerStateUpdate(me.GetVictim());
me.resetAttackTimer();
me.ResetAttackTimer();
}
}
else