mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Core/Pets: updated many pet damage formulars and apply spellpower bonus for warlock pets
This commit is contained in:
@@ -420,6 +420,16 @@ void Spell::EffectSchoolDMG(SpellEffIndex effIndex)
|
||||
damage += damage / 6;
|
||||
}
|
||||
}
|
||||
|
||||
// Warlock Pets deal 50% of the coefficient's spell power bonus as bonus damage
|
||||
if (m_caster->IsPet())
|
||||
{
|
||||
if (Unit* owner = m_caster->GetCharmerOrOwner())
|
||||
{
|
||||
damage = CalculatePct(owner->SpellDamageBonusDone(unitTarget, m_spellInfo, (uint32)damage, SPELL_DIRECT_DAMAGE, effIndex), 50);
|
||||
damage = unitTarget->SpellDamageBonusTaken(owner, m_spellInfo, (uint32)damage, SPELL_DIRECT_DAMAGE);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_PRIEST:
|
||||
|
||||
Reference in New Issue
Block a user