Core/Spells: Split TRIGGERED_IGNORE_POWER_AND_REAGENT_COST into separate POWER and REAGENT flags

Port From (https://github.com/TrinityCore/TrinityCore/commit/151a50d2aa6e10efe7fc14e0bd22aaef9effa859)
This commit is contained in:
Hondacrx
2025-05-25 10:53:01 -04:00
parent 36efa04d1a
commit 9b75d3255d
7 changed files with 20 additions and 20 deletions
@@ -65,7 +65,7 @@ namespace Scripts.DragonIsles.AzureVault.Leymor
if (instance.GetData(DataTypes.LeymorIntroDone) != 0)
return;
me.SetUnitFlag(UnitFlags.ImmuneToPc | UnitFlags.ImmuneToNpc);
me.SetImmuneToAll(true);
DoCastSelf(SpellIds.Stasis);
}
@@ -81,7 +81,7 @@ namespace Scripts.DragonIsles.AzureVault.Leymor
_scheduler.Schedule(TimeSpan.FromSeconds(1), _ =>
{
me.RemoveAurasDueToSpell(SpellIds.Stasis);
me.RemoveUnitFlag(UnitFlags.ImmuneToPc | UnitFlags.ImmuneToNpc);
me.SetImmuneToAll(false);
DoCastSelf(SpellIds.ArcaneEruption);
Talk(MiscConst.SayAnnounceAwaken);
});