[11818] update creature's unit part(update spell events, auras, movement) while in death. thanks to rsa for making tests

this allows us update creature's death persistent auras, fall died creatures in natural, non hacky way

also fix the bug that creature starts waypoint movement not from begining at respawning. thanks to Grz3s for reporting
This commit is contained in:
SilverIce 2011-10-13 15:44:12 +03:00
parent 9c70637333
commit 012be82c86
3 changed files with 6 additions and 12 deletions

View file

@ -8350,8 +8350,9 @@ void Unit::SetDeathState(DeathState s)
RemoveMiniPet();
UnsummonAllTotems();
i_motionMaster.Clear(false,true);
i_motionMaster.MoveIdle();
StopMoving();
DisableSpline();
ModifyAuraState(AURA_STATE_HEALTHLESS_20_PERCENT, false);
ModifyAuraState(AURA_STATE_HEALTHLESS_35_PERCENT, false);