Core/Entities: don't allow client control if player is still affected by any lose of control state

Port From (https://github.com/TrinityCore/TrinityCore/commit/29bfa32fc39de1d93fbdb272d48689174c547725)
This commit is contained in:
hondacrx
2021-06-23 14:13:31 -04:00
parent 87cc42ee48
commit 0c527d206c
4 changed files with 34 additions and 22 deletions
+3 -1
View File
@@ -541,7 +541,9 @@ namespace Game.Entities
NeedChangeAI = true;
IsAIEnabled = false;
}
player.SetClientControl(this, true);
if (!HasUnitState(UnitState.LostControl))
player.SetClientControl(this, true);
}
EngageWithTarget(charmer);