Core/Spells: fixed root behaivior of creatures that are being rooted via movement template while getting a root aura removed
Port From (https://github.com/TrinityCore/TrinityCore/commit/d01a22f58ea19ce9ec71ea7c26adfbdea183fbd2)
This commit is contained in:
@@ -1176,7 +1176,7 @@ namespace Game.Entities
|
|||||||
SetStunned(false);
|
SetStunned(false);
|
||||||
break;
|
break;
|
||||||
case UnitState.Root:
|
case UnitState.Root:
|
||||||
if (HasAuraType(AuraType.ModRoot) || HasAuraType(AuraType.ModRoot2) || GetVehicle() != null)
|
if (HasAuraType(AuraType.ModRoot) || HasAuraType(AuraType.ModRoot2) || GetVehicle() != null || (IsCreature() && ToCreature().GetMovementTemplate().IsRooted()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ClearUnitState(state);
|
ClearUnitState(state);
|
||||||
|
|||||||
Reference in New Issue
Block a user