[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) // Normal case (Unsummon only permanent pet)
else if (Pet* pet = GetPet()) else if (Pet* pet = GetPet())
{ {
if (pet->IsPermanentPetFor((Player*)this)) if (pet->IsPermanentPetFor((Player*)this) && !((Player*)this)->InArena())
((Player*)this)->UnsummonPetTemporaryIfAny(); ((Player*)this)->UnsummonPetTemporaryIfAny();
else else
pet->ApplyModeFlags(PET_MODE_DISABLE_ACTIONS,true); pet->ApplyModeFlags(PET_MODE_DISABLE_ACTIONS,true);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9087" #define REVISION_NR "9088"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__