Skip to content

Commit

Permalink
Spell/Unit: Remove now redundant default coeff calculation
Browse files Browse the repository at this point in the history
I am expecting trouble, but we need to threat 0 as 0

Closes cmangos/issues#3685
  • Loading branch information
killerwife committed Mar 30, 2024
1 parent cc39299 commit f2798ea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7329,9 +7329,6 @@ int32 Unit::SpellBonusWithCoeffs(SpellEntry const* spellInfo, SpellEffectIndex e
total += int32(ap_bonus * (GetTotalAttackPowerValue(IsSpellRequiresRangedAP(spellInfo) ? RANGED_ATTACK : BASE_ATTACK) + ap_benefit));
}
}
// Default calculation
else if (benefit)
coeff = CalculateDefaultCoefficient(spellInfo, damagetype);

if (benefit)
{
Expand Down

0 comments on commit f2798ea

Please sign in to comment.