mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +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)
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue