Some refactoring of code. and some cleanups
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user