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:
@@ -1195,7 +1195,7 @@ toughness=4
|
||||
text=Spitting Earth deals damage equal to the number of Mountains you control to target creature.
|
||||
id=4362
|
||||
target=creature
|
||||
alias=136509
|
||||
auto=foreach(moutain|myinplay)damage:1
|
||||
name=Spitting Earth
|
||||
rarity=C
|
||||
type=Sorcery
|
||||
@@ -1297,6 +1297,15 @@ mana={2}{U}
|
||||
type=Sorcery
|
||||
[/card]
|
||||
[card]
|
||||
text=Draw a card for each tapped creature target opponent controls.
|
||||
id=4279
|
||||
name=Theft of Dreams
|
||||
auto=foreach(creature[tapped]|opponentinplay)draw:1
|
||||
rarity=U
|
||||
type=Sorcery
|
||||
mana={2}{U}
|
||||
[/card]
|
||||
[card]
|
||||
text=Put target creature on top of its owner's library.
|
||||
target=creature
|
||||
auto=moveTo(ownerLibrary)
|
||||
|
||||
@@ -539,14 +539,6 @@ type=Sorcery
|
||||
mana={1}{W}
|
||||
[/card]
|
||||
[card]
|
||||
text=Draw a card for each tapped creature target opponent controls.
|
||||
id=4279
|
||||
name=Theft of Dreams
|
||||
rarity=U
|
||||
type=Sorcery
|
||||
mana={2}{U}
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Thing from the Deep attacks, sacrifice it unless you sacrifice an Island.
|
||||
id=4280
|
||||
name=Thing from the Deep
|
||||
|
||||
Reference in New Issue
Block a user