Ensuring target costs at least 1 charge when using dynamic cost.

This commit is contained in:
2026-01-14 01:52:09 +01:00
parent 9afca9c3b9
commit b4d6a9dba1

View File

@ -68,7 +68,7 @@ public abstract class TotemItem extends Item {
private int getTargetCost(TotemData totemData) {
return isChargeCostDynamic()
? (int)(totemData.getTargetDeaths() * getConfig().getChargeCostMultiplier())
? Math.max(1, (int)(totemData.getTargetDeaths() * getConfig().getChargeCostMultiplier()))
: getConfig().getChargeCost();
}