Core/Auras: Implement SpellAuraInterruptFlags2::WarModeLeave (#28937)

Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
Teleqraph
2023-05-06 22:49:01 +02:00
committed by GitHub
parent f4e5c381ac
commit 2b231c9866
2 changed files with 3 additions and 1 deletions

View File

@@ -29199,6 +29199,7 @@ void Player::UpdateWarModeAuras()
RemovePlayerFlag(PLAYER_FLAGS_WAR_MODE_ACTIVE);
CastSpell(this, auraInside, true);
RemoveAurasDueToSpell(auraOutside);
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::WarModeLeave);
}
else
{
@@ -29216,6 +29217,7 @@ void Player::UpdateWarModeAuras()
RemoveAurasDueToSpell(auraInside);
RemovePlayerFlag(PLAYER_FLAGS_WAR_MODE_ACTIVE);
RemovePvpFlag(UNIT_BYTE2_FLAG_PVP);
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2::WarModeLeave);
}
}

View File

@@ -133,7 +133,7 @@ enum class SpellAuraInterruptFlags2 : uint32
ChangeTalent = 0x00004000,
ChangeGlyph = 0x00008000,
SeamlessTransfer = 0x00010000, // NYI
WarModeLeave = 0x00020000, // NYI
WarModeLeave = 0x00020000, // Implemented in Player::UpdateWarModeAuras
TouchingGround = 0x00040000, // NYI
ChromieTime = 0x00080000, // NYI
SplineFlightOrFreeFlight = 0x00100000, // NYI