Core/Spells: fix mocking blow doing damage to players and non tauntable creatures.
This commit is contained in:
@@ -3317,6 +3317,14 @@ void Spell::EffectWeaponDmg(SpellEffIndex effIndex)
|
|||||||
fixed_bonus += (aur->GetStackAmount() - 1) * CalculateDamage(2, unitTarget);
|
fixed_bonus += (aur->GetStackAmount() - 1) * CalculateDamage(2, unitTarget);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (m_spellInfo->SpellFamilyFlags[0] & 0x8000000) // Mocking Blow
|
||||||
|
{
|
||||||
|
if (unitTarget->IsImmunedToSpellEffect(m_spellInfo,EFFECT_1) || unitTarget->GetTypeId() == TYPEID_PLAYER)
|
||||||
|
{
|
||||||
|
m_damage = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SPELLFAMILY_ROGUE:
|
case SPELLFAMILY_ROGUE:
|
||||||
|
|||||||
Reference in New Issue
Block a user