From ff0fa1802df73325bac1d590322d12a4d78325cb Mon Sep 17 00:00:00 2001 From: Not-A-Normal-Robot <76723917+Not-A-Normal-Robot@users.noreply.github.com> Date: Fri, 24 Sep 2021 18:57:58 +0700 Subject: [PATCH] Fix repeating stage completion text bug (#326) Previously, if you play master phantasm and complete the line requirements of the dig section, but have not dug all the blocks, the "Stage (n) complete" text will still appear. This pull request makes it so that it checks the dig condition *before* making the text appear. --- parts/eventsets/master_ph.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/eventsets/master_ph.lua b/parts/eventsets/master_ph.lua index 383a02f1..2266b212 100644 --- a/parts/eventsets/master_ph.lua +++ b/parts/eventsets/master_ph.lua @@ -74,8 +74,8 @@ return P.modeData.target=42 SFX.play('reach') elseif T==42 then--Stage 4: survive in high speed - P:stageComplete(4) if P.garbageBeneath==0 then + P:stageComplete(4) P.waiting=30 ENV.lock=11 P:setNext(6)