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
@@ -163,6 +163,9 @@ namespace Game
_player.FailQuestsWithFlag(QuestFlags.FailOnLogout);
// exit areatriggers before saving to remove auras applied by them
_player.ExitAllAreaTriggers();
// empty buyback items and save the player in the database
// some save parts only correctly work in case player present in map/player_lists (pets, etc)
if (save)