mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
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);
|
||||
}
|
||||
}
|
||||
if (m_spellInfo->SpellFamilyFlags[0] & 0x8000000) // Mocking Blow
|
||||
{
|
||||
if (unitTarget->IsImmunedToSpellEffect(m_spellInfo,EFFECT_1) || unitTarget->GetTypeId() == TYPEID_PLAYER)
|
||||
{
|
||||
m_damage = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_ROGUE:
|
||||
|
||||
Reference in New Issue
Block a user