mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Fixed build
This commit is contained in:
@@ -11967,13 +11967,9 @@ void Unit::SetControlled(bool apply, UnitState state)
|
||||
SetStunned(false);
|
||||
break;
|
||||
case UNIT_STATE_ROOT:
|
||||
if (HasAuraType(SPELL_AURA_MOD_ROOT) || GetVehicle())
|
||||
if (HasAuraType(SPELL_AURA_MOD_ROOT) || GetVehicle() || (ToCreature() && ToCreature()->GetMovementTemplate().IsRooted()))
|
||||
return;
|
||||
|
||||
if (Creature* creature = ToCreature())
|
||||
if (creature->GetMovementTemplate().IsRooted)
|
||||
return;
|
||||
|
||||
ClearUnitState(state);
|
||||
SetRooted(false);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user