diff --git a/src/battle/script.c b/src/battle/script.c index 15c1d73..7d3380e 100644 --- a/src/battle/script.c +++ b/src/battle/script.c @@ -255,6 +255,11 @@ static void executeNextLine(ScriptRunner *runner) addHudMessage(colors.red, _("Mission Failed!")); failMission(); } + else if (strcmp(command, "FAIL_CHALLENGE") == 0) + { + addHudMessage(colors.red, _("Challenge Failed!")); + failMission(); + } else if (strcmp(command, "END_CHALLENGE") == 0) { game.currentMission->challengeData.scriptedEnd = 1;