mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
React to removal of Spike Weaver by using the effect if it's already planning to do later
Don't leave blockers if planning to use fog effect, except the card that will do so. (might need to tap to use it, or might get killed if attacking)
This commit is contained in:
@@ -16,7 +16,7 @@ if result.setcode is None:
|
||||
print parser.parse_args(['-h'])
|
||||
sys.exit(1)
|
||||
|
||||
r = requests.get('http://mtgjson.com/json/%s.json' % result.setcode)
|
||||
r = requests.get('http://mtgjson.com/v4/json/%s.json' % result.setcode)
|
||||
d = r.json()
|
||||
cards = d['cards']
|
||||
|
||||
@@ -35,10 +35,10 @@ for c in cards:
|
||||
l = []
|
||||
l.append(c['number'])
|
||||
|
||||
rarity = c['rarity'][0]
|
||||
if rarity == 'B':
|
||||
rarity = c['rarity'][0].upper()
|
||||
if rarity == 'C' and c['supertypes'].count('Basic') > 0:
|
||||
rarity = 'L'
|
||||
l.append(rarity)
|
||||
l.append(c['name'].replace(u'\xc6', 'AE'))
|
||||
l.append(c['name'].replace(u'\xc6', 'Ae'))
|
||||
l.append('\n')
|
||||
f.write(' '.join(l))
|
||||
f.write(' '.join(l))
|
||||
|
||||
Reference in New Issue
Block a user