- fixed goal->Destroyed bug in spells code

This commit is contained in:
cade 2000-07-10 21:18:04 +00:00
parent 56e80442f8
commit 9f74d5319f

View file

@ -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,