Core/Spells: coefficient scaling will no longer affect attack power multipliers

This commit is contained in:
Ovahlord committed 2022-01-09 15:09:21 +01:00
1 parent 04df69a8ed
commit 009e1dba37
1 file changed
-6
-6
View File
@@ -6720,9 +6720,6 @@ uint32 Unit::SpellDamageBonusDone(Unit* victim, SpellInfo const* spellProto, uin
if (spellPowerCoeff > 0.f)
spellPowerCoeff = spellProto->CalculateScaledCoefficient(this, spellPowerCoeff);
if (attackPowerCoeff > 0.f)
attackPowerCoeff = spellProto->CalculateScaledCoefficient(this, attackPowerCoeff);
if (attackPowerCoeff > 0.f)
{
float APbonus = float(victim->GetTotalAuraModifier(attType == BASE_ATTACK ? SPELL_AURA_MELEE_ATTACK_POWER_ATTACKER_BONUS : SPELL_AURA_RANGED_ATTACK_POWER_ATTACKER_BONUS));
@@ -7978,9 +7975,6 @@ uint32 Unit::MeleeDamageBonusDone(Unit* victim, uint32 pdamage, WeaponAttackType
if (SpellBonusEntry const* bonus = sSpellMgr->GetSpellBonusData(spellProto->Id))
attackPowerCoeff = bonus->ap_bonus;
if (attackPowerCoeff > 0.f)
attackPowerCoeff = spellProto->CalculateScaledCoefficient(this, attackPowerCoeff);
if (attackPowerCoeff > 0.f)
DoneFlatBenefit += attackPowerCoeff * GetTotalAttackPowerValue(attType);
}