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:
Aurelio Arcabascio
2021-01-02 13:10:26 -05:00
committed by Shauren
parent 5b9fec5f0b
commit 05a9b2d2cb

View File

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