aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-11-16 23:44:36 +0100
committerShauren <shauren.trinity@gmail.com>2024-11-16 23:44:36 +0100
commit32b54ffb66676ec47d7153c1b897770bc5d08493 (patch)
tree8f39e2c9cc138b07467fabc4fcb4d5ccd486528c
parentb0ca98fd14b6d42863298467bd359b9e0f4bada5 (diff)
Core/Spells: Don't treat pets as permanently crowd controlled
Closes #30445
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index 73c189ea03c..4ef204e5f79 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -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*/)