*Fix the bug that mobs attack player again when player use Vanish. By thenecromancer
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user