Permalink
Browse files

Add draw script

This is a shorthand for "in_hand = Draw(CONTROLLER, SELF).on()".
  • Loading branch information...
beheh committed Sep 3, 2015
1 parent 000ac00 commit cfbd461f66d4ae343a2c24a551bee3689ee12dfc
Showing with 3 additions and 0 deletions.
  1. +3 −0 fireplace/card.py
@@ -237,6 +237,9 @@ def draw(self):
self.log("%s draws %r", self.controller, self)
self.zone = Zone.HAND
self.controller.cards_drawn_this_turn += 1
actions = self.get_actions("draw")
if actions:
self.game.queue_actions(self, actions)

def heal(self, target, amount):
return self.game.queue_actions(self, [Heal(target, amount)])

0 comments on commit cfbd461

Please sign in to comment.