v1.4.0: fixed enraged catalyst granting more enchant power than intended

This commit is contained in:
Evan Debenham
2022-09-16 13:34:24 -04:00
parent 998fb3c670
commit b69f551ebf
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ public class Berserk extends Buff implements ActionIndicator.Action {
}
public float enchantFactor(float chance){
return chance + (Math.min(1f, power) * 0.15f) * ((Hero) target).pointsInTalent(Talent.ENRAGED_CATALYST);
return chance + ((Math.min(1f, power) * 0.15f) * ((Hero) target).pointsInTalent(Talent.ENRAGED_CATALYST));
}
public float damageFactor(float dmg){

View File

@@ -369,7 +369,7 @@ abstract public class Weapon extends KindOfWeapon {
float multi = RingOfArcana.enchantPowerMultiplier(attacker);
Berserk rage = attacker.buff(Berserk.class);
if (rage != null) {
multi += rage.enchantFactor(multi);
multi = rage.enchantFactor(multi);
}
if (attacker.buff(Talent.SpiritBladesTracker.class) != null