mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9088] Prevent unsummon permanent pets at arenas.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
305b54d242
commit
375aedd611
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue