mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[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:
parent
2be50d4b95
commit
01318dbc8c
3 changed files with 4 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue