fix(Core/Loot): Always interrupt any spell casting while looting corpse. (#9160)
Fixes #8860
This commit is contained in:
parent
44de147a9b
commit
4942012db9
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue