mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
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:
@@ -1448,6 +1448,11 @@ void Player::setDeathState(DeathState s)
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP, 1);
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH, 1);
|
||||
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON, 1);
|
||||
|
||||
// For some reason movement packet is always to be issued on death
|
||||
// send if not going to fall down
|
||||
if (!IsFlying() || GetTransport())
|
||||
SendMonsterMove(GetPositionX(), GetPositionY(), GetPositionZ(), 0);
|
||||
}
|
||||
Unit::setDeathState(s);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user