mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 08:28:57 +01:00
Core/Scripts: implemented Combined Toxins proc only from poisons
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user