Core/Auras: Implement SpellAuraInterruptFlags2::EnteringInstance (#28942)

This commit is contained in:
Teleqraph
2023-05-06 17:58:40 +02:00
committed by GitHub
parent 513788e884
commit 5fddf06daa
2 changed files with 4 additions and 1 deletions

View File

@@ -457,6 +457,9 @@ bool Map::AddPlayerToMap(Player* player, bool initPlayer /*= true*/)
player->UpdateObjectVisibility(false);
PhasingHandler::SendToPlayer(player);
if (Instanceable())
player->RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::EnteringInstance);
if (player->IsAlive())
ConvertCorpseToBones(player->GetGUID());

View File

@@ -127,7 +127,7 @@ enum class SpellAuraInterruptFlags2 : uint32
StartOfEncounter = 0x00000100, // NYI
EndOfEncounter = 0x00000200, // NYI
Disconnect = 0x00000400, // NYI
EnteringInstance = 0x00000800, // NYI
EnteringInstance = 0x00000800, // Implemented in Map::AddPlayerToMap
DuelEnd = 0x00001000, // NYI
LeaveArenaOrBattleground = 0x00002000, // Implemented in Battleground::RemovePlayerAtLeave
ChangeTalent = 0x00004000,