From 6e9af3c446b8ff54771d5bfb875499403dd226f6 Mon Sep 17 00:00:00 2001 From: MahtraDR <93822896+MahtraDR@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:57:36 +1200 Subject: [PATCH] [scripts][combat-trainer] Honor stop_hunting_if_bleeding for exiting combat We were defaulting to exiting combat with untendable bleeders. Now we honor the `stop_hunting_if_bleeding` setting, as with weird necros who want to heal in combat... --- combat-trainer.lic | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/combat-trainer.lic b/combat-trainer.lic index e320ca69d8..7757faa189 100644 --- a/combat-trainer.lic +++ b/combat-trainer.lic @@ -1061,12 +1061,13 @@ class SafetyProcess Flags.add('ct-parasite', 'blood mite on your (?.*)\.') @equipment_manager = equipment_manager @health_threshold = settings.health_threshold + @stop_on_bleeding = settings.stop_hunting_if_bleeding echo(" @health_threshold: #{@health_threshold}") if $debug_mode_ct @untendable_counter = 0 end def execute(game_state) - if @untendable_counter >= 3 + if @untendable_counter >= 3 && @stop_on_bleeding echo('Skipping tendme check due to untendable backoff') if $debug_mode_ct echo("Couldn't tend bleeders after trying three times. Stopping hunt to heal.") $HUNTING_BUDDY.stop_hunting