mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 08:28:32 +01:00
Core/Auras: Implement SpellAuraInterruptFlags2::WarModeLeave (#28937)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user