mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/Units): Do not stun players during taxi flight. (#13798)
Fixes #13654
This commit is contained in:
@@ -18196,6 +18196,11 @@ void Unit::SetControlled(bool apply, UnitState state)
|
||||
|
||||
void Unit::SetStunned(bool apply)
|
||||
{
|
||||
if (HasUnitState(UNIT_STATE_IN_FLIGHT))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (apply)
|
||||
{
|
||||
SetTarget();
|
||||
|
||||
Reference in New Issue
Block a user