aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_druid.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_druid.cpp b/src/server/scripts/Spells/spell_druid.cpp
index cd75086c51c..18ca14f8bda 100644
--- a/src/server/scripts/Spells/spell_druid.cpp
+++ b/src/server/scripts/Spells/spell_druid.cpp
@@ -1355,6 +1355,20 @@ class spell_dru_omen_of_clarity : public AuraScript
}
};
+// 113043 - Omen of Clarity
+class spell_dru_omen_of_clarity_restoration : public AuraScript
+{
+ bool CheckProc(AuraEffect const* aurEff, ProcEventInfo const& /*eventInfo*/) const
+ {
+ return roll_chance_i(aurEff->GetAmount());
+ }
+
+ void Register() override
+ {
+ DoCheckEffectProc += AuraCheckEffectProcFn(spell_dru_omen_of_clarity_restoration::CheckProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_SPELL);
+ }
+};
+
// 392303 - Power of the Archdruid
class spell_dru_power_of_the_archdruid : public AuraScript
{
@@ -2246,6 +2260,7 @@ void AddSC_druid_spell_scripts()
RegisterSpellScriptWithArgs(spell_dru_new_moon, "spell_dru_half_moon", Optional<DruidSpells>(SPELL_DRUID_HALF_MOON_OVERRIDE), Optional<DruidSpells>(SPELL_DRUID_NEW_MOON_OVERRIDE));
RegisterSpellScriptWithArgs(spell_dru_new_moon, "spell_dru_new_moon", Optional<DruidSpells>(SPELL_DRUID_NEW_MOON_OVERRIDE), Optional<DruidSpells>());
RegisterSpellScript(spell_dru_omen_of_clarity);
+ RegisterSpellScript(spell_dru_omen_of_clarity_restoration);
RegisterSpellScript(spell_dru_power_of_the_archdruid);
RegisterSpellScript(spell_dru_prowl);
RegisterSpellScript(spell_dru_rip);