From 7d5ccebe847207488baab15b390cbe0a4cb21844 Mon Sep 17 00:00:00 2001 From: Gerkiz Date: Fri, 19 Nov 2021 22:19:08 +0100 Subject: [PATCH] mtn v3 - fix that biters with less boosted health gave bugged coins --- maps/mountain_fortress_v3/biters_yield_coins.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maps/mountain_fortress_v3/biters_yield_coins.lua b/maps/mountain_fortress_v3/biters_yield_coins.lua index df32aaee..f9f6b3ab 100644 --- a/maps/mountain_fortress_v3/biters_yield_coins.lua +++ b/maps/mountain_fortress_v3/biters_yield_coins.lua @@ -50,6 +50,9 @@ local function get_coin_count(entity) if not biter_health_boost_units[unit_number][3] then return coin_count end + if not biter_health_boost_units[unit_number][3].healthbar_id then -- only bosses + return coin_count + end local m = 1 / biter_health_boost_units[unit_number][2] coin_count = floor(coin_count * m) if coin_count < 1 then