Commits

Dominic Kexel  committed c764135

see #15 added tactician

  • Participants
  • Parent commits a7ff5ac

Comments (0)

Files changed (1)

File cards/seaside/tactician.py

+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
+from cards.card import Card
+from cards.cardtypes import DURATION, ACTION
+
+
+class Tactician(Card):
+
+    type = ACTION | DURATION
+    cost = (5, 0)
+    name = "Tactician"
+
+    def __init__(self):
+        Card.__init__(self)
+        self.any_cards = False  
+        
+    def action_step(self, game, player):
+        self.any_cards = game.discard_hand(player)
+        game.resolved(self)
+
+    def begin_step(self, game, player):
+        if self.any_cards:
+            for _ in xrange(5):
+                game.draw_card(player)
+            player.buys += 1
+            player.actions += 1
+        game.resolved(self)
+