Laurent - Added draw/token to the foreach parser (allow to sligthly reduce the number of lines in MTGAbility.cpp and also add few cards to different cards.dat.)

NOTE that all these additions to the foreach parser are only available for the "inplay" area... "countcards" will need to be updated in order to have thing such as graveyard or hand to be taken into consideration (but when it will be done cards such as Spontaneous Generation - MRQ, could be added)
Also updated (tentatively) the "cantbeblockedby" in the parser it still does not work...ARG... but I can feel that I'm not far away from the solution...
We need also to go through some of the cards.dat to be sure we are not missing any possible addition ...
This commit is contained in:
wagic.laurent
2009-06-29 11:11:41 +00:00
parent 0218680ae0
commit 6097b1282b
14 changed files with 99 additions and 93 deletions

View File

@@ -214,6 +214,15 @@ toughness=1
abilities=flying,cloud
[/card]
[card]
text=Draw a card for each creature you control.
id=19739
auto=foreach(creature|myinplay)draw:1
name=Collective Unconscious
rarity=R
type=Sorcery
mana={4}{G}{G}
[/card]
[card]
text=Counter target spell.
target=*|stack
auto=fizzle

View File

@@ -412,14 +412,6 @@ type=Enchantment
mana={2}{U}{U}
[/card]
[card]
text=Draw a card for each creature you control.
id=19739
name=Collective Unconscious
rarity=R
type=Sorcery
mana={4}{G}{G}
[/card]
[card]
text=Nonartifact creatures get +2/+2 as long as they all share a color.
id=19665
name=Common Cause