*Fix the bug that mobs attack player again when player use Vanish. By thenecromancer

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-02 14:22:25 -05:00
parent 9fef44790f
commit 60ba92c02f
+3 -1
View File
@@ -1960,7 +1960,9 @@ void Spell::EffectTriggerSpell(uint32 i)
bool instant = false; bool instant = false;
for(uint32 j = i+1; j < 3; ++j) for(uint32 j = i+1; j < 3; ++j)
{ {
if(m_spellInfo->Effect[j]==SPELL_EFFECT_INSTAKILL && m_spellInfo->EffectImplicitTargetA[j]==TARGET_UNIT_CASTER) if(m_spellInfo->EffectImplicitTargetA[j] == TARGET_UNIT_CASTER
&& (m_spellInfo->Effect[j]==SPELL_EFFECT_INSTAKILL
|| m_spellInfo->Effect[j]==SPELL_EFFECT_SANCTUARY))
{ {
instant = true; instant = true;
break; break;