Psyringe - softcoded Great Defender (LEG), provided test script.

This commit is contained in:
Psyyringe
2009-12-29 00:39:16 +00:00
parent 219c69914a
commit 1f2a5bd4bd
4 changed files with 26 additions and 8 deletions

View File

@@ -481,8 +481,9 @@ type=Enchantment
[/card]
[card]
text=Target creature gets +0/+X until end of turn, where X is its converted mana cost.
id=1614
target=creature
auto=0/manacost
id=1614
name=Great Defender
rarity=U
mana={W}

View File

@@ -231,6 +231,7 @@ goblin_lackey3.txt
goblin_lackey4.txt
goblin_offensive.txt
gravedigger.txt
great_defender.txt
hannas_custody.txt
harpoon_sniper.txt
hellfire.txt

View File

@@ -0,0 +1,23 @@
#NAME:Great Defender
#DESC: Target creature gets +0/+X
#DESC: until end of turn, where X
#DESC: is its converted mana cost.
[INIT]
firstmain
[PLAYER1]
inplay:Grizzly Bears
hand:Great Defender,Lightning Bolt
manapool:{W}{R}
[PLAYER2]
[DO]
Great Defender
Grizzly Bears
Lightning Bolt
Grizzly Bears
[ASSERT]
firstmain
[PLAYER1]
inplay:Grizzly Bears
graveyard:Great Defender,Lightning Bolt
[PLAYER2]
[END]

View File

@@ -1441,13 +1441,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
int mana = card->target->getManaCost()->getConvertedCost();
game->currentlyActing()->getManaPool()->add(Constants::MTG_COLOR_ARTIFACT, mana);
}
case 1614: // Great Defender
{
int toughness = card->target->getManaCost()->getConvertedCost();
int power = 0;
game->addObserver(NEW AInstantPowerToughnessModifierUntilEOT(id, card, card->target, NEW WParsedPT(power,toughness)));
}
//Addons ICE-AGE Cards