v2.0.1: fixed combined energy potentially boosting energy past 100%
This commit is contained in:
+1
-1
@@ -226,7 +226,7 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void processCombinedEnergy(Talent.CombinedEnergyAbilityTracker tracker){
|
public void processCombinedEnergy(Talent.CombinedEnergyAbilityTracker tracker){
|
||||||
energy += tracker.energySpent/3f;
|
energy = Math.min(energy+tracker.energySpent/3f, energyCap());
|
||||||
cooldown = 0;
|
cooldown = 0;
|
||||||
tracker.detach();
|
tracker.detach();
|
||||||
if (energy >= 1){
|
if (energy >= 1){
|
||||||
|
|||||||
Reference in New Issue
Block a user