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
This commit is contained in:
Ovah
2021-03-09 17:02:23 +01:00
committed by GitHub
parent c1a5672944
commit e77100c923

View File

@@ -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
}
}