Core/AreaTriggers: Handle exit areatrigger on player map change
Port From (https://github.com/TrinityCore/TrinityCore/commit/26fc14419142e3188370035ce4144cdb125bec05)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user