aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Northrend
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2018-02-11 21:10:56 -0300
committerariel- <ariel-@users.noreply.github.com>2018-02-11 21:10:56 -0300
commit477878630e1bb2811d9be97189f0c819377b7840 (patch)
tree35356bb7ad1fe079212fbdcc0bbd4b590a55109f /src/server/scripts/Northrend
parent9d0e90829cb6e6da8bab2a0bf2834834998c5708 (diff)
Core/Scripts: implemented Combined Toxins proc only from poisons
Diffstat (limited to 'src/server/scripts/Northrend')
-rw-r--r--src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp
index dea176778d9..bd15af2bfb6 100644
--- a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp
+++ b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp
@@ -149,7 +149,26 @@ class instance_ahnkahet : public InstanceMapScript
}
};
+// 56584 - Combined Toxins
+class spell_combined_toxins : public AuraScript
+{
+ PrepareAuraScript(spell_combined_toxins);
+
+ bool CheckProc(AuraEffect const* /*aurEff*/, ProcEventInfo& eventInfo)
+ {
+ // only procs on poisons (damage class check to exclude stuff like Envenom)
+ SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
+ return (spellInfo && spellInfo->Dispel == DISPEL_POISON && spellInfo->DmgClass != SPELL_DAMAGE_CLASS_MELEE);
+ }
+
+ void Register() override
+ {
+ DoCheckEffectProc += AuraCheckEffectProcFn(spell_combined_toxins::CheckProc, EFFECT_0, SPELL_AURA_PROC_TRIGGER_DAMAGE);
+ }
+};
+
void AddSC_instance_ahnkahet()
{
new instance_ahnkahet();
+ RegisterAuraScript(spell_combined_toxins);
}