mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 18:36:31 +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
This commit is contained in:
committed by
GitHub
parent
94c03b2107
commit
4ea64b515a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user