diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-02-11 21:10:56 -0300 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-06-19 23:33:38 +0200 |
commit | a24af55d13acfbf31598d7e140a245b4ebf5b66b (patch) | |
tree | dec76e222efcebac5f136fea6d5609ba367ccb29 /src | |
parent | c21dc3c1b7985cbffaaf1cd17a48bddd2106154d (diff) |
Core/Scripts: implemented Combined Toxins proc only from poisons
(cherry picked from commit 477878630e1bb2811d9be97189f0c819377b7840)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp | 21 |
1 files changed, 21 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 b9ff99c1cc4..a80530aec30 100644 --- a/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp +++ b/src/server/scripts/Northrend/AzjolNerub/Ahnkahet/instance_ahnkahet.cpp @@ -22,6 +22,8 @@ #include "GameObject.h" #include "InstanceScript.h" #include "Map.h" +#include "SpellInfo.h" +#include "SpellScript.h" #include <sstream> DoorData const doorData[] = @@ -150,7 +152,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); } |