Mor deth wit speling
authorDavid Sharpe <decoydavid@gmail.com>
Sat, 17 May 2014 20:11:57 +0000 (22:11 +0200)
committerDavid Sharpe <decoydavid@gmail.com>
Sat, 17 May 2014 20:11:57 +0000 (22:11 +0200)
data/location_decks/standard.yaml
naja/actions.py

index ee055123278c96ffe8f459d89426d208b1032a83..58ecaf818239d6392924ecbda38c85e1dc1fb0b2 100644 (file)
@@ -116,7 +116,7 @@ _action_definitions:
 
   # Three-colour actions.
   - &ACQUIRE-WIN-TOKEN-AND-LOSE-HEALTH
-    action_class: 'AcquireWinTokenAndLoseHeath'
+    action_class: 'AcquireWinTokenAndLoseHealth'
     required_bits: [RED, GREEN, BLUE]
 
 # This field is ignored, but it's a useful place to put some card definitions
index f5b03a0e4399e3715c2d0cee3ffd5feeec5a15d4..ff5bdba7dbfd6037afdd5764d4cf30c0ec138c60 100644 (file)
@@ -234,6 +234,14 @@ class AcquireWinToken(LocationAction):
             BITS.RED, BITS.GREEN, BITS.BLUE,
         ]))
 
+class AcquireWinTokenAndLoseHealth(AcquireWinToken):
+    TEXT = "Gain {WINTOKEN}, lose {HEALTH}, then clear {RED,GREEN,BLUE}."
+    GLYPHS = (ACTION_GLYPHS.WINTOKEN, ACTION_GLYPHS.DAMAGE)
+
+    def perform_action(self, board, location):
+        self.take_damage(board)
+        super(AcquireWinTokenAndLoseHealth, self).perform_action(board,
+                                                                location)
 
 class GainHealth(LocationAction):
     TEXT = "Gain {HEALTH}."