mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Player: auto-attacked player stands up from sit or sleep state (#25684)
* Fixed Auto Attack bug on sitting player
* Victim now stands during sleep and stand emotes
(cherry picked from commit 4ea64b515a)
This commit is contained in:
committed by
Shauren
parent
5b9fec5f0b
commit
05a9b2d2cb
@@ -1041,6 +1041,10 @@ bool Unit::HasBreakableByDamageCrowdControlAura(Unit* excludeCasterChannel) cons
|
||||
}
|
||||
}
|
||||
|
||||
// check to see if victim is sitting
|
||||
if (victim->GetStandState())
|
||||
victim->SetStandState(UNIT_STAND_STATE_STAND);
|
||||
|
||||
return damage;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user