Core/Unit: clear charmed/possessed state before returning client control. Works like a charm

Port From (https://github.com/TrinityCore/TrinityCore/commit/b1a76fc7569ab7338730d680e7b0c703fa6b1003)
This commit is contained in:
hondacrx
2021-08-09 09:24:38 -04:00
parent 2196616dc0
commit 7501866e11
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ namespace Framework.Constants
Unattackable = InFlight,
Moving = RoamingMove | ConfusedMove | FleeingMove | ChaseMove | FollowMove,
Controlled = Confused | Stunned | Fleeing,
CantClientControl = Confused | Charmed | Possessed | Fleeing,
CantClientControl = Charmed | Fleeing | Confused | Possessed,
LostControl = Controlled | Possessed | Jumping | Charging,
CannotAutoattack = Controlled | Charging | Casting,
Sightless = LostControl | Evade,