Core/AreaTriggers: Handle exit areatrigger on player map change
Port From (https://github.com/TrinityCore/TrinityCore/commit/26fc14419142e3188370035ce4144cdb125bec05)
This commit is contained in:
@@ -4795,6 +4795,9 @@ namespace Game.Entities
|
||||
|
||||
pet.CombatStop();
|
||||
|
||||
// exit areatriggers before saving to remove auras applied by them
|
||||
pet.ExitAllAreaTriggers();
|
||||
|
||||
// only if current pet in slot
|
||||
pet.SavePetToDB(mode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user