From a3cde56b18e212744864dfdf37befe8fe5e2d5b2 Mon Sep 17 00:00:00 2001 From: Olion Date: Sat, 3 Oct 2015 10:53:38 +0300 Subject: [PATCH] [Spell] minor cleanup Too lazy to find out what exactly was influenced by it, but it was wrong :) no effect != negative effect --- src/game/WorldHandlers/Spell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/WorldHandlers/Spell.cpp b/src/game/WorldHandlers/Spell.cpp index 607fd4a6..43f421f5 100644 --- a/src/game/WorldHandlers/Spell.cpp +++ b/src/game/WorldHandlers/Spell.cpp @@ -722,7 +722,7 @@ void Spell::prepareDataForTriggerSystem() // avoid triggering negative hit for only positive targets m_negativeEffectMask = 0x0; for (int i = 0; i < MAX_EFFECT_INDEX; ++i) - if (!IsPositiveEffect(m_spellInfo, SpellEffectIndex(i))) + if (m_spellInfo->Effect[i] != SPELL_EFFECT_NONE && !IsPositiveEffect(m_spellInfo, SpellEffectIndex(i))) { m_negativeEffectMask |= (1 << i); } // Hunter traps spells (for Entrapment trigger)