-
Notifications
You must be signed in to change notification settings - Fork 2
casts when drawn
Kazushi Ahara edited this page Dec 23, 2020
·
1 revision
DRG_036t
:Waxadred's Candle
DRG_320t
:Dream Portal
SCH_307t
:Soul Fragment
When a player draws a card in the begining of his turn, if he draws one of such cards, the card is casted immediately.
GameTag.CASTSWHENDRAWN = 1077
CARD_ATTRIBUTE_MAP
:GameTag.CASTSWHENDRAWN: "casts_when_drawn",
(line 167)
in BaseGame._begin_turn
, insert
while True:
drawn_card = player.draw()
# if drawn_card is 'casts_when_drawn' then immediately play. by aharalab 19.12.2020
if not hasattr(drawn_card, "casts_when_drawn"):
break;
else:
self.queue_actions(player, [Play(drawn_card, None, None, None)])