summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/actions/fln/ambush.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/colonial_twilight/actions/fln/ambush.rb')
-rw-r--r--lib/colonial_twilight/actions/fln/ambush.rb35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/colonial_twilight/actions/fln/ambush.rb b/lib/colonial_twilight/actions/fln/ambush.rb
new file mode 100644
index 0000000..9756c55
--- /dev/null
+++ b/lib/colonial_twilight/actions/fln/ambush.rb
@@ -0,0 +1,35 @@
+# frozen_string_literal: true
+
+require_relative 'fln_action'
+
+module ColonialTwilight
+ module Actions
+ module FLN
+ # Ambush 4.3.3 : max 2
+ class Ambush < FlnAction
+ def initialize(space)
+ super(space, {}, cost: 0)
+ end
+
+ # Activate only 1 Underground Guerrilla
+ # Remove 1 Government piece (Police first, then Troops, then Base) into casualties
+ # No Attrition
+ # -1 Commitment per French Base removed
+ def apply!(board)
+ raise NotImplementedError
+ end
+
+ class << self
+ def special?
+ true
+ end
+
+ # any space where an Attack is occurring with Underground Guerrillas.
+ def applicable?(space)
+ Attack.applicable?(space) && space.fln_underground.positive?
+ end
+ end
+ end
+ end
+ end
+end