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:
hondacrx
2022-01-02 12:40:12 -05:00
parent c9621dcbe1
commit c4bc8c6362
+1 -1
View File
@@ -1176,7 +1176,7 @@ namespace Game.Entities
SetStunned(false);
break;
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;
ClearUnitState(state);