v2.2.0: fixed physical empower incorrectly stacking with itself.
This commit is contained in:
@@ -64,8 +64,10 @@ public class PhysicalEmpower extends Buff {
|
|||||||
public int left;
|
public int left;
|
||||||
|
|
||||||
public void set(int dmg, int hits){
|
public void set(int dmg, int hits){
|
||||||
dmgBoost = dmg;
|
if (dmg*hits > dmgBoost*left) {
|
||||||
left = Math.max(left, hits);
|
dmgBoost = dmg;
|
||||||
|
left = hits;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String BOOST = "boost";
|
private static final String BOOST = "boost";
|
||||||
|
|||||||
Reference in New Issue
Block a user