Core/Spells: Fix looting not breaking stealth (#27696)

Closes #27222
This commit is contained in:
anzz1
2022-02-01 16:03:16 +02:00
committed by GitHub
parent f205e25b33
commit dcfa370180
2 changed files with 4 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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