* Fix bug where pet is lost while working in stables and mounted.
--HG-- branch : trunk
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user