diff options
Diffstat (limited to 'lib/colonial_twilight')
-rw-r--r-- | lib/colonial_twilight/fln_bot_rules.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/colonial_twilight/fln_bot_rules.rb b/lib/colonial_twilight/fln_bot_rules.rb index 463ea8c..a5e5540 100644 --- a/lib/colonial_twilight/fln_bot_rules.rb +++ b/lib/colonial_twilight/fln_bot_rules.rb @@ -150,9 +150,9 @@ module ColonialTwilight r end - def rally_9_priority(spaces, resources) - f = _filter(spaces) { |s| s.support? && (resources.zero? || resources > s.terror) } - _filter(f) { |s| s.neutral? && (resources.zero? || resources > s.terror) } + def rally_9_priority(spaces, resources, &is_rallied) + f = _filter(spaces) { |s| s.support? && (resources.zero? || (resources - (is_rallied.call(s) ? 0 : 1)) > s.terror) } + _filter(f) { |s| s.neutral? && (resources.zero? || (resources - (is_rallied.call(s) ? 0 : 1)) > s.terror) } end # Extort |