diff options
author | Aurelio Arcabascio <aurelioarcabascio@gmail.com> | 2021-01-02 13:10:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-02 19:10:26 +0100 |
commit | 4ea64b515aa952662dce11fd1012c566ae0d2449 (patch) | |
tree | 9e411a0003fb4a8287252778ffe61bf8e01d28af | |
parent | 94c03b2107ad6603aaf185d58d63480e79c97e76 (diff) |
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
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 4c662d35a2b..d3d4a40ff80 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -946,6 +946,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; } |