magarena / magarena-scripts-builder

Generate card templates from JSON card description
3 stars 1 forks source link

ability word not removed in ability property if it does not occur at start of oracle text #5

Open melvinzhang opened 9 years ago

melvinzhang commented 9 years ago

Eg Magarena/scripts_missing/Arbiter_of_the_Ideal.txt

name=Arbiter of the Ideal
image=http://magiccards.info/scans/en/bng/31.jpg
value=2.500
rarity=R
type=Creature
subtype=Sphinx
cost={4}{U}{U}
pt=4/5
ability=Flying;\
        Inspired — Whenever SN becomes untapped, reveal the top card of your library. If it's an artifact, creature, or land card, you may put it onto the battlefield with a manifestation counter on it. That permanent is an enchantment in addition to its other types.
timing=main
oracle=Flying\nInspired — Whenever Arbiter of the Ideal becomes untapped, reveal the top card of your library. If it's an artifact, creature, or land card, you may put it onto the battlefield with a manifestation counter on it. That permanent is an enchantment in addition to its other types.
ShawnieBoy commented 9 years ago

Hmm, that could be tricky to remove, as just going for the em-dash would also remove things like non-standard costs e.g. Cumulative upkeep — Pay 1 life Buyback — Discard a card May have to replace them by name.

ShawnieBoy commented 9 years ago

Actually looking at it, the alternate costs don't have spaces around the em-dash. I'll get on it.

ShawnieBoy commented 9 years ago

Just an issue with activated abilities with Choose one —, and (1) Khans —, (2) Dragons —