Skip to content

Commit

Permalink
mtn v3 - fix loco repair bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Aug 5, 2022
1 parent 8f1f0ae commit 6f9fa6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maps/mountain_fortress_v3/entities.lua
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ local function on_player_repaired_entity(event)
if carriages_numbers[entity.unit_number] then
local player = game.get_player(event.player_index)
local repair_speed = RPG.get_magicka(player)
if repair_speed <= 0 then
if repair_speed <= 1 then
set_train_final_health(-1, true)
return
else
Expand Down

0 comments on commit 6f9fa6f

Please sign in to comment.