fix(Core/Loot): Always interrupt any spell casting while looting corpse. (#9160)

Fixes #8860
This commit is contained in:
UltraNix
2021-11-26 03:24:43 +01:00
committed by GitHub
parent 44de147a9b
commit 4942012db9

View File

@@ -236,11 +236,11 @@ void WorldSession::HandleLootOpcode(WorldPacket& recvData)
if (!GetPlayer()->IsAlive() || !guid.IsCreatureOrVehicle())
return;
GetPlayer()->SendLoot(guid, LOOT_CORPSE);
// interrupt cast
if (GetPlayer()->IsNonMeleeSpellCast(false))
GetPlayer()->InterruptNonMeleeSpells(false);
GetPlayer()->SendLoot(guid, LOOT_CORPSE);
}
void WorldSession::HandleLootReleaseOpcode(WorldPacket& recvData)