* Fix bug where pet is lost while working in stables and mounted.

--HG--
branch : trunk
This commit is contained in:
biglad
2009-01-24 12:52:33 +00:00
parent 071f81d85a
commit d8f0479c0a
+4
View File
@@ -500,6 +500,10 @@ void WorldSession::HandleListStabledPetsOpcode( WorldPacket & recv_data )
if(GetPlayer()->hasUnitState(UNIT_STAT_DIED)) if(GetPlayer()->hasUnitState(UNIT_STAT_DIED))
GetPlayer()->RemoveSpellsCausingAura(SPELL_AURA_FEIGN_DEATH); 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); SendStablePet(npcGUID);
} }