diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-01-22 14:13:46 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-06-16 20:38:56 +0200 |
commit | 29bfa32fc39de1d93fbdb272d48689174c547725 (patch) | |
tree | 4e7524f720a8740cbb9e05be82f6475f4dcba39a /src/server/game/Battlegrounds/Battleground.cpp | |
parent | b46d899ef16ce15e1f8403be076993545035cddc (diff) |
Core/Entities: don't allow client control if player is still affected by any lose of control state
(cherry picked from commit e315e41d36061fc88dfa09bfa0da1fbc0c00826f)
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.cpp')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.cpp b/src/server/game/Battlegrounds/Battleground.cpp index e492847827a..25a9f200606 100644 --- a/src/server/game/Battlegrounds/Battleground.cpp +++ b/src/server/game/Battlegrounds/Battleground.cpp @@ -860,7 +860,8 @@ uint32 Battleground::GetBonusHonorFromKill(uint32 kills) const void Battleground::BlockMovement(Player* player) { - player->SetClientControl(player, 0); // movement disabled NOTE: the effect will be automatically removed by client when the player is teleported from the battleground, so no need to send with uint8(1) in RemovePlayerAtLeave() + // movement disabled NOTE: the effect will be automatically removed by client when the player is teleported from the battleground, so no need to send with uint8(1) in RemovePlayerAtLeave() + player->SetClientControl(player, false); } void Battleground::RemovePlayerAtLeave(ObjectGuid guid, bool Transport, bool SendPacket) |