From 7655edb472a98fc0eefc2e2c4ea0b356402c85f6 Mon Sep 17 00:00:00 2001 From: killerwife Date: Mon, 6 Nov 2023 08:12:16 +0100 Subject: [PATCH] Spell: Disable sending packet with aura removal for self when possessed --- src/game/Spells/SpellHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/Spells/SpellHandler.cpp b/src/game/Spells/SpellHandler.cpp index 939c26bab7..c81dcbe265 100644 --- a/src/game/Spells/SpellHandler.cpp +++ b/src/game/Spells/SpellHandler.cpp @@ -474,6 +474,10 @@ void WorldSession::HandleCancelAuraOpcode(WorldPacket& recvPacket) if (!holder) return; + // cant remove any auras while possessed + if (_player->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_POSSESSED) || _player->HasCharmer()) + return; + if (!holder->IsPositive()) { // ignore for remote control state