diff options
| author | megamage <none@none> | 2009-05-02 14:22:25 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-02 14:22:25 -0500 |
| commit | 60ba92c02f715aa1a6c12df47841934df34546d4 (patch) | |
| tree | a16954961bd3a564fb45b4c17ff6d9bdfe4ef56b | |
| parent | 9fef44790f1b8f0557ba17e4c94f2883e001f1fa (diff) | |
*Fix the bug that mobs attack player again when player use Vanish. By thenecromancer
--HG--
branch : trunk
| -rw-r--r-- | src/game/SpellEffects.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index dd6169c3b3c..efdcf30a1f9 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1960,7 +1960,9 @@ void Spell::EffectTriggerSpell(uint32 i) bool instant = false; 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; break; |
