Skip to content

Commit

Permalink
Core/Spells: Don't treat pets as permanently crowd controlled
Browse files Browse the repository at this point in the history
Closes #30445
  • Loading branch information
Shauren committed Nov 16, 2024
1 parent b0ca98f commit 32b54ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9317,7 +9317,7 @@ float Unit::GetWeaponDamageRange(WeaponAttackType attType, WeaponDamageRange typ
bool Unit::CanFreeMove() const
{
return !HasUnitState(UNIT_STATE_CONFUSED | UNIT_STATE_FLEEING | UNIT_STATE_IN_FLIGHT |
UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DISTRACTED) && GetOwnerGUID().IsEmpty();
UNIT_STATE_ROOT | UNIT_STATE_STUNNED | UNIT_STATE_DISTRACTED);
}

void Unit::SetLevel(uint8 lvl, bool sendUpdate/* = true*/)
Expand Down

0 comments on commit 32b54ff

Please sign in to comment.