aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShocker <none@none>2010-09-13 04:02:57 +0300
committerShocker <none@none>2010-09-13 04:02:57 +0300
commitfef504e365ecc942c8fb70f52b362446ed183104 (patch)
treed343d235595e91a763d44b9bd32c1df635936ec3 /src
parentb7b1efa4c1d68d33cb93282cbf09efa5d260291c (diff)
Core/Loot: Looting should interrupt casting, fixes issue 3676.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Server/Protocol/Handlers/LootHandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Server/Protocol/Handlers/LootHandler.cpp b/src/server/game/Server/Protocol/Handlers/LootHandler.cpp
index b2345dfab4f..ca4af9fee27 100644
--- a/src/server/game/Server/Protocol/Handlers/LootHandler.cpp
+++ b/src/server/game/Server/Protocol/Handlers/LootHandler.cpp
@@ -199,6 +199,10 @@ void WorldSession::HandleLootOpcode(WorldPacket & recv_data)
return;
GetPlayer()->SendLoot(guid, LOOT_CORPSE);
+
+ // interrupt cast
+ if (GetPlayer()->IsNonMeleeSpellCasted(false))
+ GetPlayer()->InterruptNonMeleeSpells(false);
}
void WorldSession::HandleLootReleaseOpcode(WorldPacket & recv_data)