From d8f0479c0a65c556587417b97642c9d98a782018 Mon Sep 17 00:00:00 2001 From: biglad Date: Sat, 24 Jan 2009 12:52:33 +0000 Subject: * Fix bug where pet is lost while working in stables and mounted. --HG-- branch : trunk --- src/game/NPCHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/NPCHandler.cpp') 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); } -- cgit v1.2.3