diff options
author | anzz1 <anzz1@live.com> | 2022-02-01 16:03:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-01 16:03:16 +0200 |
commit | dcfa3701807026b0cb43d450e10c3765e52b63ca (patch) | |
tree | f40adbf860e97b0a25fd9419588a81ad94664e3d /src | |
parent | f205e25b337ceb10a9bec111a46406f4af9dc3e2 (diff) |
Core/Spells: Fix looting not breaking stealth (#27696)
Closes #27222
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Handlers/LootHandler.cpp | 2 | ||||
-rw-r--r-- | src/server/game/Spells/SpellDefines.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/server/game/Handlers/LootHandler.cpp b/src/server/game/Handlers/LootHandler.cpp index 633e400ad19..b711826f51e 100644 --- a/src/server/game/Handlers/LootHandler.cpp +++ b/src/server/game/Handlers/LootHandler.cpp @@ -231,6 +231,8 @@ void WorldSession::HandleLootOpcode(WorldPacket& recvData) if (GetPlayer()->IsNonMeleeSpellCast(false)) GetPlayer()->InterruptNonMeleeSpells(false); + GetPlayer()->RemoveAurasWithInterruptFlags(AURA_INTERRUPT_FLAG_LOOTING); + GetPlayer()->SendLoot(guid, LOOT_CORPSE); } diff --git a/src/server/game/Spells/SpellDefines.h b/src/server/game/Spells/SpellDefines.h index 7f24df14b0e..9efd9d40e60 100644 --- a/src/server/game/Spells/SpellDefines.h +++ b/src/server/game/Spells/SpellDefines.h @@ -54,8 +54,8 @@ enum SpellAuraInterruptFlags : uint32 AURA_INTERRUPT_FLAG_NOT_ABOVEWATER = 0x00000080, // 7 removed by entering water AURA_INTERRUPT_FLAG_NOT_UNDERWATER = 0x00000100, // 8 removed by leaving water AURA_INTERRUPT_FLAG_NOT_SHEATHED = 0x00000200, // 9 removed by unsheathing - AURA_INTERRUPT_FLAG_TALK = 0x00000400, // 10 talk to npc / loot? action on creature - AURA_INTERRUPT_FLAG_USE = 0x00000800, // 11 mine/use/open action on gameobject + AURA_INTERRUPT_FLAG_TALK = 0x00000400, // 10 talk to npc / interact? + AURA_INTERRUPT_FLAG_LOOTING = 0x00000800, // 11 mine/use/open action on gameobject / loot AURA_INTERRUPT_FLAG_MELEE_ATTACK = 0x00001000, // 12 removed by attacking AURA_INTERRUPT_FLAG_SPELL_ATTACK = 0x00002000, // 13 ??? AURA_INTERRUPT_FLAG_UNK14 = 0x00004000, // 14 |