Core/Units: Fixed AttackStop NowDead field being set for the wrong unit
(cherry picked from commit 345e0586114c2f8b9d2d35b89b6a66f213558274)
This commit is contained in:
@@ -2563,7 +2563,7 @@ void Unit::SendMeleeAttackStop(Unit const* victim) const
|
||||
WorldPackets::Combat::SAttackStop attackStop;
|
||||
attackStop.Attacker = GetGUID();
|
||||
attackStop.Victim = Object::GetGUID(victim);
|
||||
attackStop.NowDead = victim && !victim->IsAlive();
|
||||
attackStop.NowDead = !IsAlive();
|
||||
SendMessageToSet(attackStop.Write(), true);
|
||||
|
||||
if (victim)
|
||||
|
||||
Reference in New Issue
Block a user