aboutsummaryrefslogtreecommitdiff
path: root/src/game/NPCHandler.cpp
diff options
context:
space:
mode:
authorbiglad <none@none>2009-01-24 12:52:33 +0000
committerbiglad <none@none>2009-01-24 12:52:33 +0000
commitd8f0479c0a65c556587417b97642c9d98a782018 (patch)
treeb8921e1c278fb387579ec30c30be4037681a4957 /src/game/NPCHandler.cpp
parent071f81d85a435dde4753725b71179be61bc263ec (diff)
* Fix bug where pet is lost while working in stables and mounted.
--HG-- branch : trunk
Diffstat (limited to 'src/game/NPCHandler.cpp')
-rw-r--r--src/game/NPCHandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/NPCHandler.cpp b/src/game/NPCHandler.cpp
index edf58fd762e..fd23991392a 100644
--- a/src/game/NPCHandler.cpp
+++ b/src/game/NPCHandler.cpp
@@ -500,6 +500,10 @@ void WorldSession::HandleListStabledPetsOpcode( WorldPacket & recv_data )
if(GetPlayer()->hasUnitState(UNIT_STAT_DIED))
GetPlayer()->RemoveSpellsCausingAura(SPELL_AURA_FEIGN_DEATH);
+ // remove mounts this fix bug where getting pet from stable while mounted deletes pet.
+ if(GetPlayer()->IsMounted())
+ GetPlayer()->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
+
SendStablePet(npcGUID);
}