Scripts/Spells: Implement mage talent "Pyrotechnics"
Port From (https://github.com/TrinityCore/TrinityCore/commit/e9d963760c1f4be95e655ecd50f1c6aceecdc1dd)
This commit is contained in:
@@ -73,6 +73,7 @@ struct SpellIds
|
||||
public const uint PhoenixFlames = 257541;
|
||||
public const uint PhoenixFlamesDamage = 257542;
|
||||
public const uint Pyroblast = 11366;
|
||||
public const uint Pyrotechnics = 157644;
|
||||
public const uint RadiantSparkProcBlocker = 376105;
|
||||
public const uint RayOfFrostBonus = 208141;
|
||||
public const uint RayOfFrostFingersOfFrost = 269748;
|
||||
@@ -1526,6 +1527,29 @@ class spell_mage_prismatic_barrier : AuraScript
|
||||
}
|
||||
}
|
||||
|
||||
[Script] // 157642 - Pyrotechnics
|
||||
class spell_mage_pyrotechnics : AuraScript
|
||||
{
|
||||
public override bool Validate(SpellInfo spellInfo)
|
||||
{
|
||||
return ValidateSpellInfo(SpellIds.Pyrotechnics);
|
||||
}
|
||||
|
||||
void HandleProc(AuraEffect aurEff, ProcEventInfo procInfo)
|
||||
{
|
||||
if (procInfo.GetHitMask().HasAnyFlag(ProcFlagsHit.Critical))
|
||||
{
|
||||
PreventDefaultAction();
|
||||
procInfo.GetActor().RemoveAurasDueToSpell(SpellIds.Pyrotechnics);
|
||||
}
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
{
|
||||
OnEffectProc.Add(new(HandleProc, 0, AuraType.ProcTriggerSpell));
|
||||
}
|
||||
}
|
||||
|
||||
[Script] // 376103 - Radiant Spark
|
||||
class spell_mage_radiant_spark : AuraScript
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user