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