Skip to content

Commit cfbd461

Browse files
committed
Add draw script
This is a shorthand for "in_hand = Draw(CONTROLLER, SELF).on()".
1 parent 000ac00 commit cfbd461

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fireplace/card.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ def draw(self):
237237
self.log("%s draws %r", self.controller, self)
238238
self.zone = Zone.HAND
239239
self.controller.cards_drawn_this_turn += 1
240+
actions = self.get_actions("draw")
241+
if actions:
242+
self.game.queue_actions(self, actions)
240243

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

0 commit comments

Comments
 (0)