Core/AreaTriggers: Handle exit areatrigger on player map change

Port From (https://github.com/TrinityCore/TrinityCore/commit/26fc14419142e3188370035ce4144cdb125bec05)
This commit is contained in:
Hondacrx
2025-09-05 21:14:36 -04:00
parent 217bccde02
commit dbf160fbdf
5 changed files with 86 additions and 38 deletions
+3
View File
@@ -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);