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
+2 -2
View File
@@ -577,7 +577,7 @@ namespace Game.AI
if (me.HasUnitState(UnitState.Casting))
return;
if (!me.isAttackReady(WeaponAttackType.RangedAttack))
if (!me.IsAttackReady(WeaponAttackType.RangedAttack))
return;
Unit victim = me.GetVictim();
@@ -610,7 +610,7 @@ namespace Game.AI
return;
me.CastSpell(victim, rangedAttackSpell, TriggerCastFlags.CastDirectly);
me.resetAttackTimer(WeaponAttackType.RangedAttack);
me.ResetAttackTimer(WeaponAttackType.RangedAttack);
}
public void DoAutoAttackIfReady()