diff --git a/combat-trainer.lic b/combat-trainer.lic index c4fe1348ab..94d4efced1 100644 --- a/combat-trainer.lic +++ b/combat-trainer.lic @@ -1056,6 +1056,7 @@ class SafetyProcess Flags.add('ct-itemdropped', '^Your (?.*) falls to your feet\.', '^You cannot maintain your grip on the (?.*), and it falls to the ground!') Flags.add('ct-germshieldlost', 'It jerks the.* (?\w+) out of your hands') Flags.add('active-mitigation', 'You believe you could \b(?\w+) out of the way of the \b(?\w+)') + Flags.add('ct-parasite', 'blood mite on your (?.*)\.') @equipment_manager = equipment_manager @health_threshold = settings.health_threshold echo(" @health_threshold: #{@health_threshold}") if $debug_mode_ct @@ -1080,6 +1081,7 @@ class SafetyProcess DRC.fix_standing check_item_recovery(game_state) tend_lodged + tend_parasite active_mitigation game_state.danger = in_danger?(game_state.danger) keep_away if !game_state.danger && game_state.retreating? @@ -1147,6 +1149,13 @@ class SafetyProcess Flags.reset('ct-lodged') end + def tend_parasite + return unless Flags['ct-parasite'] + + DRC.wait_for_script_to_complete('tendme') + Flags.reset('ct-parasite') + end + def keep_away return unless Flags['ct-engaged'] @@ -5322,6 +5331,7 @@ before_dying do Flags.delete('pouch-full') Flags.delete('container-full') Flags.delete('ct-lodged') + Flags.delete('ct-parasite') Flags.delete('ct-engaged') Flags.delete('active-mitigation') Flags.delete('ct-spelllost')