Core/Spells: Interrupt spells and auras before sending loot to client (#27279)

This commit is contained in:
acidmanifesto
2021-11-16 11:47:07 +01:00
committed by GitHub
parent 6c512113d3
commit a24ea431dc

View File

@@ -227,11 +227,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)