- fixed goal->Destroyed bug in spells code
This commit is contained in:
parent
56e80442f8
commit
9f74d5319f
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@ global void HandleActionSpellCast(Unit* unit)
|
|||
{
|
||||
UnitShowAnimation(unit,unit->Type->Animations->Attack);
|
||||
if ( !unit->Reset ) return;
|
||||
if ( unit->Command.Data.Move.Goal &&
|
||||
unit->Command.Data.Move.Goal->Destroyed )
|
||||
repeat = 0;
|
||||
else
|
||||
repeat = SpellCast(unit->Command.Data.Move.SpellId,
|
||||
unit,
|
||||
unit->Command.Data.Move.Goal,
|
||||
|
|
Loading…
Add table
Reference in a new issue