Core/Auras: Implement SpellAuraInterruptFlags2::WarModeLeave

Port From (https://github.com/TrinityCore/TrinityCore/commit/2b231c9866db62eaab2a5806f671c7dcf22073a5)
This commit is contained in:
hondacrx
2023-05-21 17:21:22 -04:00
parent f670656393
commit 0cfe1dc508
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -4748,6 +4748,7 @@ namespace Game.Entities
RemovePlayerFlag(PlayerFlags.WarModeActive);
CastSpell(this, auraInside, true);
RemoveAurasDueToSpell(auraOutside);
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.WarModeLeave);
}
else
{
@@ -4765,6 +4766,7 @@ namespace Game.Entities
RemoveAurasDueToSpell(auraInside);
RemovePlayerFlag(PlayerFlags.WarModeActive);
RemovePvpFlag(UnitPVPStateFlags.PvP);
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.WarModeLeave);
}
}
+1 -1
View File
@@ -591,7 +591,7 @@ namespace Game.Entities
Unit.ProcSkillsAndAuras(this, null, new ProcFlagsInit(ProcFlags.EncounterStart), new ProcFlagsInit(), ProcFlagsSpellType.MaskAll, ProcFlagsSpellPhase.None, ProcFlagsHit.None, null, null, null);
}
void AtEndOfEncounter()
public void AtEndOfEncounter()
{
RemoveAurasWithInterruptFlags(SpellAuraInterruptFlags2.EndOfEncounter);
}