v2.2.0: fixed physical empower incorrectly stacking with itself.

This commit is contained in:
Evan Debenham
2023-09-24 10:02:59 -04:00
parent 62df7a24ce
commit cd2a70aea3

View File

@@ -64,8 +64,10 @@ public class PhysicalEmpower extends Buff {
public int left;
public void set(int dmg, int hits){
dmgBoost = dmg;
left = Math.max(left, hits);
if (dmg*hits > dmgBoost*left) {
dmgBoost = dmg;
left = hits;
}
}
private static final String BOOST = "boost";