Skip to content

Commit

Permalink
Merge pull request #6869 from MahtraDR/ct_honor_stop_hunting_if_bleeding
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtraDR authored Jul 17, 2024
2 parents 3669460 + 9344036 commit 3249c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -1062,12 +1062,13 @@ class SafetyProcess
Flags.add('ct-parasite', 'blood mite on your (?<body_part>.*)\.')
@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
Expand Down

0 comments on commit 3249c9f

Please sign in to comment.