Erwan
-a few card fixes
This commit is contained in:
@@ -850,7 +850,7 @@ rarity=U
|
||||
[card]
|
||||
text=Spitting Earth deals damage equal to the number of Mountains you control to target creature.
|
||||
id=3464
|
||||
alias=136509
|
||||
auto=foreach(mountain|myBattlefield) damage:1
|
||||
target=creature
|
||||
name=Spitting Earth
|
||||
rarity=C
|
||||
|
||||
@@ -1069,18 +1069,6 @@ power=3
|
||||
toughness=3
|
||||
[/card]
|
||||
[card]
|
||||
text=When Vedalken Dismisser comes into play, put target creature on top of its owner's library.
|
||||
auto=moveTo(ownerLibrary) target(creature)
|
||||
id=87898
|
||||
name=Vedalken Dismisser
|
||||
rarity=C
|
||||
type=Creature
|
||||
mana={5}{U}
|
||||
power=2
|
||||
subtype=Vedalken Wizard
|
||||
toughness=2
|
||||
[/card]
|
||||
[card]
|
||||
text={U}, {T}: Target player puts the top two cards of his or her library into his or her graveyard.
|
||||
id=89028
|
||||
auto={U}{T}:deplete:2 target(player)
|
||||
|
||||
@@ -1838,7 +1838,18 @@ rarity=U
|
||||
type=Sorcery
|
||||
mana={4}{U}{B}
|
||||
[/card]
|
||||
|
||||
[card]
|
||||
text=When Vedalken Dismisser comes into play, put target creature on top of its owner's library.
|
||||
auto=moveTo(ownerLibrary) target(creature) #Can't target anything when come into play unless it is a "may" ability
|
||||
id=87898
|
||||
name=Vedalken Dismisser
|
||||
rarity=C
|
||||
type=Creature
|
||||
mana={5}{U}
|
||||
power=2
|
||||
subtype=Vedalken Wizard
|
||||
toughness=2
|
||||
[/card]
|
||||
[card]
|
||||
text=Return target creature card from your graveyard to play. If {G} was spent to play Vigor Mortis, that creature comes into play with an additional +1/+1 counter on it.
|
||||
id=88986
|
||||
|
||||
@@ -694,8 +694,9 @@ name=Tendrils of Corruption
|
||||
mana={3}{B}
|
||||
type=Instant
|
||||
text=Tendrils of Corruption deals X damage to target creature and you gain X life, where X is the number of Swamps you control.
|
||||
target=creature
|
||||
auto=foreach(swamp|myinplay) damage:1 target(creature)
|
||||
auto=foreach(swamp|myinplay) life:1
|
||||
auto=foreach(swamp|myinplay) life:1 controller
|
||||
rarity=C
|
||||
[/card]
|
||||
[card]
|
||||
|
||||
@@ -103,6 +103,7 @@ goblin_king.txt
|
||||
gravedigger.txt
|
||||
#hammerfist_giant.txt
|
||||
hannas_custody.txt
|
||||
hellfire.txt
|
||||
howl_of_the_night_pack.txt
|
||||
hymn_of_rebirth.txt
|
||||
icatian_priest.txt
|
||||
|
||||
19
projects/mtg/bin/Res/test/hellfire.txt
Normal file
19
projects/mtg/bin/Res/test/hellfire.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
#Bug:hellfire doesn't destroy
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:hellfire
|
||||
manapool:{2}{B}{B}{B}
|
||||
[PLAYER2]
|
||||
inplay:grizzly bears,dragon engine,scathe zombies
|
||||
[DO]
|
||||
hellfire
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
life:15
|
||||
graveyard:hellfire
|
||||
[PLAYER2]
|
||||
inplay:scathe zombies
|
||||
graveyard:grizzly bears,dragon engine
|
||||
[END]
|
||||
@@ -218,6 +218,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
const char * getMenuText(){
|
||||
if (abilities.size()) return abilities[0]->getMenuText();
|
||||
return "";
|
||||
}
|
||||
|
||||
MultiAbility * clone() const{
|
||||
MultiAbility * a = NEW MultiAbility(*this);
|
||||
a->isClone = 1;
|
||||
|
||||
@@ -133,7 +133,14 @@ TriggeredAbility * AbilityFactory::parseTrigger(string magicText, int id, Spell
|
||||
// Returns NULL if parsing failed
|
||||
MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTGCardInstance *card, int activated){
|
||||
size_t found;
|
||||
|
||||
|
||||
string whitespaces (" \t\f\v\n\r");
|
||||
|
||||
found=s.find_last_not_of(whitespaces);
|
||||
if (found!=string::npos)
|
||||
s.erase(found+1);
|
||||
else return NULL;
|
||||
|
||||
//TODO This block redundant with calling function
|
||||
if (!card && spell) card = spell->source;
|
||||
if (!card) return NULL;
|
||||
|
||||
Reference in New Issue
Block a user