[9088] Prevent unsummon permanent pets at arenas.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
insider42 2009-12-30 22:00:30 +03:00 committed by VladimirMangos
parent 305b54d242
commit 375aedd611
2 changed files with 2 additions and 2 deletions

View file

@ -9899,7 +9899,7 @@ void Unit::Mount(uint32 mount, uint32 spellId)
// Normal case (Unsummon only permanent pet)
else if (Pet* pet = GetPet())
{
if (pet->IsPermanentPetFor((Player*)this))
if (pet->IsPermanentPetFor((Player*)this) && !((Player*)this)->InArena())
((Player*)this)->UnsummonPetTemporaryIfAny();
else
pet->ApplyModeFlags(PET_MODE_DISABLE_ACTIONS,true);