Skip to content

Commit

Permalink
Spell: Disable sending packet with aura removal for self when possessed
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Nov 6, 2023
1 parent 5ace40f commit 7655edb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/Spells/SpellHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7655edb

Please sign in to comment.