Skip to content

Commit 345e058

Browse files
committed
Core/Units: Fixed AttackStop NowDead field being set for the wrong unit
1 parent a006e66 commit 345e058

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ void Unit::SendMeleeAttackStop(Unit const* victim) const
23522352
WorldPackets::Combat::SAttackStop attackStop;
23532353
attackStop.Attacker = GetGUID();
23542354
attackStop.Victim = Object::GetGUID(victim);
2355-
attackStop.NowDead = victim && !victim->IsAlive();
2355+
attackStop.NowDead = !IsAlive();
23562356
SendMessageToSet(attackStop.Write(), true);
23572357

23582358
if (victim)

0 commit comments

Comments
 (0)