diff --git a/stats/bonuses/radienFoodBoost.lua b/stats/bonuses/radienFoodBoost.lua index 72c08aad..c0b2e297 100644 --- a/stats/bonuses/radienFoodBoost.lua +++ b/stats/bonuses/radienFoodBoost.lua @@ -52,7 +52,11 @@ end function update(dt) - self.foodValue = status.resourcePercentage("food") + if status.isResource("food") + self.foodValue = status.resourcePercentage("food") + else + self.foodValue=0.5 + end self.armorTimer = self.armorTimer + 1