From e77100c9238cc6bd1c84f328773cb9a34a9be0bc Mon Sep 17 00:00:00 2001 From: Ovah Date: Tue, 9 Mar 2021 17:02:23 +0100 Subject: Core/PacketIO: corrected setting the NowDead field in SMSG_ATTACK_STOP This fixes a weird facing behavior for creatures which caused them to face to their spawn position when dying instead of facing their current victim's orientation --- src/server/game/Server/Packets/CombatPackets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Server/Packets/CombatPackets.cpp b/src/server/game/Server/Packets/CombatPackets.cpp index f689b7b2669..63efe432ac0 100644 --- a/src/server/game/Server/Packets/CombatPackets.cpp +++ b/src/server/game/Server/Packets/CombatPackets.cpp @@ -37,7 +37,7 @@ WorldPackets::Combat::SAttackStop::SAttackStop(Unit const* attacker, Unit const* if (victim) { Victim = victim->GetGUID(); - NowDead = victim->isDead(); + NowDead = !victim->isAlive(); // using isAlive instead of isDead to catch JUST_DIED death states as well } } -- cgit v1.2.3