[8629] don't let eventaicreatures cast spells in stuns etc.

also small correction to feign death (unit could still turn around
to face his victim with this aura)
This commit is contained in:
balrok 2009-10-11 21:48:23 +02:00
parent 2be50d4b95
commit 01318dbc8c
3 changed files with 4 additions and 3 deletions

View file

@ -10234,7 +10234,7 @@ bool Unit::SelectHostilTarget()
if(target)
{
if(!hasUnitState(UNIT_STAT_STUNNED))
if(!hasUnitState(UNIT_STAT_STUNNED | UNIT_STAT_DIED))
SetInFront(target);
((Creature*)this)->AI()->AttackStart(target);
return true;