summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/fln_rules.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-11-13 10:14:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-11-13 10:14:49 +0100
commita8be09ab04e4c29e6ce032dffcde0c134cc74382 (patch)
treea1549f0ae6d92d74ba1f1ac98f22d13f3fb69dda /lib/colonial_twilight/fln_rules.rb
parent5500a1add4c167d018665d3d1e5f69652f91b0db (diff)
downloadcolonial-twilight-a8be09ab04e4c29e6ce032dffcde0c134cc74382.zip
colonial-twilight-a8be09ab04e4c29e6ce032dffcde0c134cc74382.tar.gz
FLNBotRules : add attack && ambush && specs
Diffstat (limited to 'lib/colonial_twilight/fln_rules.rb')
-rw-r--r--lib/colonial_twilight/fln_rules.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/colonial_twilight/fln_rules.rb b/lib/colonial_twilight/fln_rules.rb
index 9e3bddd..f8e6c40 100644
--- a/lib/colonial_twilight/fln_rules.rb
+++ b/lib/colonial_twilight/fln_rules.rb
@@ -68,7 +68,7 @@ module ColonialTwilight
# Ambush 4.3.3
def may_ambush_in?(space)
- may_attack_in?(space)
+ may_attack_in?(space) && space.fln_underground.positive?
end
def ambush_spaces(board)