Scripts/Spells: Implement evoker talent Burnout (#30890)

This commit is contained in:
Aqua Deus
2025-04-29 19:17:06 +02:00
committed by GitHub
parent 0687251820
commit 8b5f38014c
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_evo_burnout';
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(375801,'spell_evo_burnout');
DELETE FROM `spell_proc` WHERE `SpellId` IN (375801,375802);
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
(375801,0x00,224,0x00000000,0x00000008,0x00000000,0x00000000,0x0,0x0,0x1,0x2,0x0,0x00,0x0,0,0,0,0), -- Burnout
(375802,0x00,224,0x00000000,0x00100000,0x00000000,0x00000000,0x0,0x4,0x0,0x0,0x0,0x18,0x0,0,0,0,0); -- Burnout

View File

@@ -51,6 +51,7 @@ enum EvokerSpells
SPELL_EVOKER_BLESSING_OF_THE_BRONZE_SHAMAN = 381756,
SPELL_EVOKER_BLESSING_OF_THE_BRONZE_WARLOCK = 381757,
SPELL_EVOKER_BLESSING_OF_THE_BRONZE_WARRIOR = 381758,
SPELL_EVOKER_BURNOUT = 375802,
SPELL_EVOKER_CALL_OF_YSERA_TALENT = 373834,
SPELL_EVOKER_CALL_OF_YSERA = 373835,
SPELL_EVOKER_CAUSALITY = 375777,
@@ -157,6 +158,31 @@ class spell_evo_blessing_of_the_bronze : public SpellScript
}
};
// 375801 - Burnout
class spell_evo_burnout : public AuraScript
{
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellInfo({ SPELL_EVOKER_BURNOUT });
}
static bool CheckProc(AuraEffect const* aurEff, ProcEventInfo const& /*eventInfo*/)
{
return roll_chance_i(aurEff->GetAmount());
}
static void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo const& eventInfo)
{
eventInfo.GetActor()->CastSpell(eventInfo.GetActor(), SPELL_EVOKER_BURNOUT, TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR);
}
void Register() override
{
DoCheckEffectProc += AuraCheckEffectProcFn(spell_evo_burnout::CheckProc, EFFECT_0, SPELL_AURA_DUMMY);
OnEffectProc += AuraEffectProcFn(spell_evo_burnout::HandleProc, EFFECT_0, SPELL_AURA_DUMMY);
}
};
// 373834 - Call of Ysera (attached to 361195 - Verdant Embrace (Green))
class spell_evo_call_of_ysera : public SpellScript
{
@@ -743,6 +769,7 @@ void AddSC_evoker_spell_scripts()
{
RegisterSpellScript(spell_evo_azure_strike);
RegisterSpellScript(spell_evo_blessing_of_the_bronze);
RegisterSpellScript(spell_evo_burnout);
RegisterSpellScript(spell_evo_call_of_ysera);
RegisterSpellScript(spell_evo_causality_disintegrate);
RegisterSpellScript(spell_evo_causality_pyre);