From 91ee99a7bfa40be58f77f117fba61b15dc2fc7ac Mon Sep 17 00:00:00 2001 From: Xanadu Date: Sun, 24 Jan 2010 23:10:15 +0100 Subject: [PATCH 1/2] Fix Frost Trap Aura spamming log due to nonexistent triggered spell --HG-- branch : trunk --- src/game/SpellMgr.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp index ab5e108675..588e7ad8b8 100644 --- a/src/game/SpellMgr.cpp +++ b/src/game/SpellMgr.cpp @@ -3849,6 +3849,10 @@ void SpellMgr::LoadSpellCustomAttr() spellInfo->EffectImplicitTargetB[1] = TARGET_UNIT_AREA_ENTRY_SRC; count++; break; + case 13810: // Frost Trap Aura + spellInfo->Effect[1] = 0; + count++; + break; default: break; } From 46a98576d91d24d150b302351de9e26b99920331 Mon Sep 17 00:00:00 2001 From: Xanadu Date: Sun, 24 Jan 2010 23:16:35 +0100 Subject: [PATCH 2/2] Fix Entrapment - now only proc on Frost Trap and Snake Trap activation. --HG-- branch : trunk --- src/game/Spell.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 1cc530f5ad..f60c880331 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -814,9 +814,8 @@ void Spell::prepareDataForTriggerSystem(AuraEffect const * triggeredByAura) } m_procEx= PROC_EX_NONE; - // Hunter traps spells (for Entrapment trigger) - // Gives your Immolation Trap, Frost Trap, Explosive Trap, and Snake Trap .... - if (m_spellInfo->SpellFamilyName == SPELLFAMILY_HUNTER && (m_spellInfo->SpellFamilyFlags[1] & 0x00002000 || m_spellInfo->SpellFamilyFlags[0] & 0x1C)) + // Hunter traps Entrapment trigger: Frost Trap and Snake Trap initial activation + if (m_spellInfo->Id == 13810 || m_spellInfo->Id == 57879) { m_procAttacker |= PROC_FLAG_ON_TRAP_ACTIVATION; // Trigger only from spells originally casted by hunter(trap activation) to prevent multiple trigger from trap triggered spells