Scripts/Spells: Implement omen of clarity talent (Restoration)

Port From (https://github.com/TrinityCore/TrinityCore/commit/44719eb78015c2f64e45bc84226ff5337d7ae33d)
This commit is contained in:
Hondacrx
2024-09-26 17:20:51 -04:00
parent c1478b7cf2
commit efe5525a7e
+15
View File
@@ -1273,6 +1273,21 @@ namespace Scripts.Spells.Druid
uint _removeOverrideSpell; uint _removeOverrideSpell;
} }
[Script] // 113043 - Omen of Clarity
class spell_dru_omen_of_clarity_restoration : AuraScript
{
bool CheckProc(AuraEffect aurEff, ProcEventInfo eventInfo)
{
return RandomHelper.randChance(aurEff.GetAmount());
}
public override void Register()
{
DoCheckEffectProc.Add(new(CheckProc, 0, AuraType.ProcTriggerSpell));
}
}
[Script] // 16864 - Omen of Clarity [Script] // 16864 - Omen of Clarity
class spell_dru_omen_of_clarity : AuraScript class spell_dru_omen_of_clarity : AuraScript
{ {