aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua Deus <95978183+aquadeus@users.noreply.github.com>2025-04-28 16:08:07 +0200
committerGitHub <noreply@github.com>2025-04-28 16:08:07 +0200
commit369d668d852fd139954ee49d9cf6adbd94c573e2 (patch)
tree5701f1259ee441e10081da8047d69c39f6c6ccf3 /src
parent4dae0c4bde9bf2ff3ffdf6f9848e7f763e56273b (diff)
Scripts/Spells: Implement evoker talent Call of Ysera (#30893)
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_evoker.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_evoker.cpp b/src/server/scripts/Spells/spell_evoker.cpp
index 82eb493dc04..2e53098137b 100644
--- a/src/server/scripts/Spells/spell_evoker.cpp
+++ b/src/server/scripts/Spells/spell_evoker.cpp
@@ -51,6 +51,8 @@ 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_CALL_OF_YSERA_TALENT = 373834,
+ SPELL_EVOKER_CALL_OF_YSERA = 373835,
SPELL_EVOKER_CAUSALITY = 375777,
SPELL_EVOKER_DISINTEGRATE = 356995,
SPELL_EVOKER_EMERALD_BLOSSOM_HEAL = 355916,
@@ -153,6 +155,33 @@ class spell_evo_blessing_of_the_bronze : public SpellScript
}
};
+// 373834 - Call of Ysera (attached to 361195 - Verdant Embrace (Green))
+class spell_evo_call_of_ysera : public SpellScript
+{
+ bool Validate(SpellInfo const* /*spellInfo*/) override
+ {
+ return ValidateSpellInfo({ SPELL_EVOKER_CALL_OF_YSERA_TALENT, SPELL_EVOKER_CALL_OF_YSERA });
+ }
+
+ bool Load() override
+ {
+ return GetCaster()->HasAura(SPELL_EVOKER_CALL_OF_YSERA_TALENT);
+ }
+
+ void HandleCallOfYsera() const
+ {
+ GetCaster()->CastSpell(GetCaster(), SPELL_EVOKER_CALL_OF_YSERA, CastSpellExtraArgsInit{
+ .TriggerFlags = TRIGGERED_IGNORE_CAST_IN_PROGRESS | TRIGGERED_DONT_REPORT_CAST_ERROR,
+ .TriggeringSpell = GetSpell()
+ });
+ }
+
+ void Register() override
+ {
+ AfterCast += SpellCastFn(spell_evo_call_of_ysera::HandleCallOfYsera);
+ }
+};
+
static constexpr std::array<uint32, 2> CausalityAffectedEmpowerSpells = { SPELL_EVOKER_ETERNITY_SURGE, SPELL_EVOKER_FIRE_BREATH };
// Called by 356995 - Disintegrate (Blue)
@@ -685,6 +714,7 @@ void AddSC_evoker_spell_scripts()
{
RegisterSpellScript(spell_evo_azure_strike);
RegisterSpellScript(spell_evo_blessing_of_the_bronze);
+ RegisterSpellScript(spell_evo_call_of_ysera);
RegisterSpellScript(spell_evo_causality_disintegrate);
RegisterSpellScript(spell_evo_causality_pyre);
RegisterSpellScript(spell_evo_charged_blast);