v1.4.0: fixed enraged catalyst granting more enchant power than intended
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user