diff options
author | Aqua Deus <95978183+aquadeus@users.noreply.github.com> | 2022-02-13 22:15:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-13 22:15:33 +0100 |
commit | 61e96a7e148330a4abedc5a710e93bdae512f1f6 (patch) | |
tree | 3663a682c3a190ca6246bab745c9561346877715 /src | |
parent | 9d25f5681e487079ebad2b220382dcf73e72c56b (diff) |
Scripts/Spells: Fix priest talent Twist of Fate (#27730)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Spells/spell_priest.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_priest.cpp b/src/server/scripts/Spells/spell_priest.cpp index 0677fc396ea..9d699ce5795 100644 --- a/src/server/scripts/Spells/spell_priest.cpp +++ b/src/server/scripts/Spells/spell_priest.cpp @@ -1231,6 +1231,23 @@ class spell_pri_t10_heal_2p_bonus : public SpellScriptLoader } }; +// 109142 - Twist of Fate (Shadow) +// 265259 - Twist of Fate (Discipline) +class spell_pri_twist_of_fate : public AuraScript +{ + PrepareAuraScript(spell_pri_twist_of_fate); + + bool CheckProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo) + { + return eventInfo.GetProcTarget()->GetHealthPct() < aurEff->GetAmount(); + } + + void Register() override + { + DoCheckEffectProc += AuraCheckEffectProcFn(spell_pri_twist_of_fate::CheckProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL); + } +}; + // 15286 - Vampiric Embrace class spell_pri_vampiric_embrace : public SpellScriptLoader { @@ -1481,6 +1498,7 @@ void AddSC_priest_spell_scripts() new spell_pri_t3_4p_bonus(); new spell_pri_t5_heal_2p_bonus(); new spell_pri_t10_heal_2p_bonus(); + RegisterSpellScript(spell_pri_twist_of_fate); new spell_pri_vampiric_embrace(); new spell_pri_vampiric_embrace_target(); new spell_pri_vampiric_touch(); |