Scripts/Spells: Implement druid talent Stellar Flare

Port From (https://github.com/TrinityCore/TrinityCore/commit/342bb55c5eb052ad3244040286a2eb6875793ff4)
This commit is contained in:
Hondacrx
2024-09-26 13:00:15 -04:00
parent 2aa3487997
commit cab0752c25
+20
View File
@@ -92,6 +92,7 @@ namespace Scripts.Spells.Druid
public const uint SkullBashInterrupt = 93985;
public const uint SpringBlossoms = 207385;
public const uint SpringBlossomsHeal = 207386;
public const uint StarBurst = 356474;
public const uint SunfireDamage = 164815;
public const uint SurvivalInstincts = 50322;
public const uint TravelForm = 783;
@@ -1457,6 +1458,25 @@ namespace Scripts.Spells.Druid
}
}
[Script] // 202347 - Stellar Flare
class spell_dru_stellar_flare : AuraScript
{
public override bool Validate(SpellInfo spellInfo)
{
return ValidateSpellInfo(SpellIds.StarBurst);
}
void HandleDispel(DispelInfo dispelInfo)
{
GetCaster()?.CastSpell(dispelInfo.GetDispeller(), SpellIds.StarBurst, true);
}
public override void Register()
{
AfterDispel.Add(new(HandleDispel));
}
}
// 340694 - Sudden Ambush
[Script] // 384667 - Sudden Ambush
class spell_dru_sudden_ambush : AuraScript