Skip to content

Commit

Permalink
Fixes #655
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Nov 15, 2015
1 parent 7c60ba9 commit 73d03aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions o8g/Scripts/customscripts.py
Expand Up @@ -1585,13 +1585,12 @@ def CustomScript(card, action = 'PLAY', origin_card = None, original_action = No
elif fetchProperty(card, 'name') == 'Independent Thinking' and action == 'PLAY':
targetCards = findTarget('Targeted-atProgram_or_Hardware_or_Resource-targetMine')
if len(targetCards):
count = 0
del targetCards[5:] # Max 5 cards
multiplier = 1
for c in targetCards:
if re.search(r'Directive',getKeywords(c)): multiplier = 2
DrawX('Draw{}Cards'.format(len(targetCards) * multiplier), '', card)
notify("{} {} {} to draw {} cards".format(me,uniTrash(),[c.Name for c in targetCards],count))
notify("{} {} {} to draw {} cards".format(me,uniTrash(),[c.Name for c in targetCards],len(targetCards) * multiplier))
for c in targetCards: intTrashCard(c,c.Stat,'free',silent = True)
elif fetchProperty(card, 'name') == 'Safety First' and action == 'End':
if len(me.hand) < currentHandSize(): DrawX('Draw1Cards', '{} uses {}'.format(me,card), card, notification = 'Quick')
Expand Down

0 comments on commit 73d03aa

Please sign in to comment.