v2.1.3: fixed weaker healing effects overriding stronger ones
This commit is contained in:
@@ -72,9 +72,11 @@ public class Healing extends Buff {
|
||||
}
|
||||
|
||||
public void setHeal(int amount, float percentPerTick, int flatPerTick){
|
||||
healingLeft = amount;
|
||||
percentHealPerTick = percentPerTick;
|
||||
flatHealPerTick = flatPerTick;
|
||||
if (amount > healingLeft) {
|
||||
healingLeft = amount;
|
||||
percentHealPerTick = percentPerTick;
|
||||
flatHealPerTick = flatPerTick;
|
||||
}
|
||||
}
|
||||
|
||||
public void increaseHeal( int amount ){
|
||||
|
||||
Reference in New Issue
Block a user