mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 07:48:02 +00:00
fix(Core/Loot): Always interrupt any spell casting while looting corpse. (#9160)
Fixes #8860
This commit is contained in:
@@ -236,11 +236,11 @@ void WorldSession::HandleLootOpcode(WorldPacket& recvData)
|
|||||||
if (!GetPlayer()->IsAlive() || !guid.IsCreatureOrVehicle())
|
if (!GetPlayer()->IsAlive() || !guid.IsCreatureOrVehicle())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
GetPlayer()->SendLoot(guid, LOOT_CORPSE);
|
|
||||||
|
|
||||||
// interrupt cast
|
// interrupt cast
|
||||||
if (GetPlayer()->IsNonMeleeSpellCast(false))
|
if (GetPlayer()->IsNonMeleeSpellCast(false))
|
||||||
GetPlayer()->InterruptNonMeleeSpells(false);
|
GetPlayer()->InterruptNonMeleeSpells(false);
|
||||||
|
|
||||||
|
GetPlayer()->SendLoot(guid, LOOT_CORPSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandleLootReleaseOpcode(WorldPacket& recvData)
|
void WorldSession::HandleLootReleaseOpcode(WorldPacket& recvData)
|
||||||
|
|||||||
Reference in New Issue
Block a user