Fix crit dmg bug
This commit is contained in:
parent
7a24327aa1
commit
58f09236bf
1 changed files with 2 additions and 1 deletions
|
@ -123,8 +123,9 @@ function calculateSpellDamage(stats, spellConversions, rawModifier, pctModifier,
|
|||
let strBoost = 1 + skillPointsToPercentage(str);
|
||||
if(!melee){
|
||||
let baseDam = rawModifier * strBoost;
|
||||
let baseDamCrit = rawModifier * (1 + strBoost);
|
||||
totalDamNorm = [baseDam, baseDam];
|
||||
totalDamCrit = [baseDam, baseDam];
|
||||
totalDamCrit = [baseDamCrit, baseDamCrit];
|
||||
for (let arr of damageformulas) {
|
||||
arr = arr.map(x => x + " + " +tooltipinfo.get("rawModifier"));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue