diff options
author | aquadeus <95978183+aquadeus@users.noreply.github.com> | 2021-12-28 21:18:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 21:18:50 +0100 |
commit | 108eeea327b50a157c503da42b05b59003a1ffac (patch) | |
tree | 4cc8accf8e35f9cd68596c72ce753fa37f6b1716 /src | |
parent | 04b06ab35ff5be05794d0ce5a278bd0b6fa8d4b8 (diff) |
Scripts/Spells: Fix shaman talent Nature's Guardian proc (#27482)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_shaman.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_shaman.cpp b/src/server/scripts/Spells/spell_shaman.cpp index 77d2b665bb4..830c275bfd4 100644 --- a/src/server/scripts/Spells/spell_shaman.cpp +++ b/src/server/scripts/Spells/spell_shaman.cpp @@ -1002,6 +1002,22 @@ class spell_sha_liquid_magma_totem : public SpellScript } }; +// 30884 - Nature's Guardian +class spell_sha_natures_guardian : public AuraScript +{ + PrepareAuraScript(spell_sha_natures_guardian); + + bool CheckProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + { + return eventInfo.GetActionTarget()->HealthBelowPct(aurEff->GetAmount()); + } + + void Register() override + { + DoCheckEffectProc += AuraCheckEffectProcFn(spell_sha_natures_guardian::CheckProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL); + } +}; + // 210621 - Path of Flames Spread class spell_sha_path_of_flames_spread : public SpellScript { @@ -1392,6 +1408,7 @@ void AddSC_shaman_spell_scripts() RegisterSpellScript(spell_sha_lightning_bolt); RegisterSpellScript(spell_sha_lightning_bolt_overload); RegisterSpellScript(spell_sha_liquid_magma_totem); + RegisterAuraScript(spell_sha_natures_guardian); RegisterSpellScript(spell_sha_path_of_flames_spread); RegisterAuraScript(spell_sha_tidal_waves); RegisterAuraScript(spell_sha_t3_6p_bonus); |