v1.4.0: fixed enraged catalyst granting more enchant power than intended
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ public class Berserk extends Buff implements ActionIndicator.Action {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public float enchantFactor(float chance){
|
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){
|
public float damageFactor(float dmg){
|
||||||
|
|||||||
+1
-1
@@ -369,7 +369,7 @@ abstract public class Weapon extends KindOfWeapon {
|
|||||||
float multi = RingOfArcana.enchantPowerMultiplier(attacker);
|
float multi = RingOfArcana.enchantPowerMultiplier(attacker);
|
||||||
Berserk rage = attacker.buff(Berserk.class);
|
Berserk rage = attacker.buff(Berserk.class);
|
||||||
if (rage != null) {
|
if (rage != null) {
|
||||||
multi += rage.enchantFactor(multi);
|
multi = rage.enchantFactor(multi);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (attacker.buff(Talent.SpiritBladesTracker.class) != null
|
if (attacker.buff(Talent.SpiritBladesTracker.class) != null
|
||||||
|
|||||||
Reference in New Issue
Block a user