Core/Pets: updated many pet damage formulars and apply spellpower bonus for warlock pets
This commit is contained in:
1 parent
0e998a6161
commit
80f65d665b
3 files changed
+62
-25
No files matched your search
@@ -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