diff options
author | biglad <none@none> | 2009-01-24 12:52:33 +0000 |
---|---|---|
committer | biglad <none@none> | 2009-01-24 12:52:33 +0000 |
commit | d8f0479c0a65c556587417b97642c9d98a782018 (patch) | |
tree | b8921e1c278fb387579ec30c30be4037681a4957 | |
parent | 071f81d85a435dde4753725b71179be61bc263ec (diff) |
* Fix bug where pet is lost while working in stables and mounted.
--HG--
branch : trunk
-rw-r--r-- | src/game/NPCHandler.cpp | 4 |
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); } |