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 May 5, 2024
1 parent b961175 commit b76d38c
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 @@ -6916,9 +6916,6 @@ int32 Unit::SpellBonusWithCoeffs(SpellEntry const* spellProto, SpellEffectIndex
total += int32(ap_bonus * (GetTotalAttackPowerValue(IsSpellRequiresRangedAP(spellProto) ? RANGED_ATTACK : BASE_ATTACK) + ap_benefit));
}
}
// Default calculation
else if (benefit)
coeff = CalculateDefaultCoefficient(spellProto, damagetype);

if (benefit)
{
Expand Down

0 comments on commit b76d38c

Please sign in to comment.