aboutsummaryrefslogtreecommitdiff
path: root/src/game/NPCHandler.cpp
diff options
context:
space:
mode:
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 4f721c8a9de..fda02c08977 100644
--- a/src/game/NPCHandler.cpp
+++ b/src/game/NPCHandler.cpp
@@ -504,6 +504,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);
}