Send movement packet on creature/player death (expected for animation display, don't ask me why)
Don't bother in case of flying creatures, as there's already something sent --HG-- branch : trunk
This commit is contained in:
1 parent
1a4c7c34fe
commit
7e99e2f9cc
2 files changed
+10
No files matched your search
@@ -1487,6 +1487,11 @@ void Creature::setDeathState(DeathState s)
|
||||
SetHealth(0);
|
||||
SetPower(getPowerType(),0);
|
||||
|
||||
// For some reason movement packet is always to be issued on death
|
||||
// send if not going to fall down
|
||||
if (!canFly() && !IsFlying())
|
||||
SendMonsterMove(GetPositionX(), GetPositionY(), GetPositionZ(), 0);
|
||||
|
||||
if ((canFly() || IsFlying()) && FallGround())
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user