Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion combat-trainer.lic
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ class SafetyProcess

def execute(game_state)
custom_require.call('tendme') if bleeding? && !Script.running?('tendme')
fput 'exit' if health < 40
fput 'exit' if health < get_settings.health_threshold
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not as simple as using get_settings here because then it won't be using the same settings as the rest of combat-trainer (i.e. the script could have been executed with args). You'll want to pass the right settings into SafetyProcess (see line 2154).

fix_standing
tend_lodged
game_state.danger = in_danger?(game_state.danger)
Expand Down