diff --git a/projects/mtg/bin/Res/sets/ICE/_cards.dat b/projects/mtg/bin/Res/sets/ICE/_cards.dat index ac409dffb..5fd15e099 100644 --- a/projects/mtg/bin/Res/sets/ICE/_cards.dat +++ b/projects/mtg/bin/Res/sets/ICE/_cards.dat @@ -86,6 +86,18 @@ power=2 toughness=2 [/card] [card] +text={T}: Target snow land becomes a 2/2 creature until end of turn. It's still a land. +id=2494 +name=Balduvian Conjurer +rarity=U +mana={1}{U} +type=Creature +subtype=Human Wizard +auto={T}:target(snow) becomes(Creature,2/2) ueot +power=0 +toughness=2 +[/card] +[card] text=Green creatures you control get +1/+1 until end of turn. Nongreen creatures you control get +1/+0 until end of turn. id=2611 auto=lord(creature[green]|myBattlefield) 1/1 diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index b1b2edab7..86e89341c 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -100,6 +100,7 @@ ashen_firebeast2.txt aura_mutation.txt avarice_totem.txt aysen_bureaucrats.txt +balduvian_conjurer.txt baneslayer_angel.txt baneslayer_angel2.txt barbed_sliver.txt diff --git a/projects/mtg/bin/Res/test/balduvian_conjurer.txt b/projects/mtg/bin/Res/test/balduvian_conjurer.txt new file mode 100644 index 000000000..cba74fd68 --- /dev/null +++ b/projects/mtg/bin/Res/test/balduvian_conjurer.txt @@ -0,0 +1,39 @@ +#Bug: Becomes does not work for target abilities +#see http://code.google.com/p/wagic/issues/detail?id=308 +[INIT] +FIRSTMAIN +[PLAYER1] +inplay:Balduvian conjurer,Snow-covered forest +[PLAYER2] +[DO] +Balduvian conjurer +Snow-covered forest +next +#begin +next +#attackers +Snow-covered forest +choice 0 +next +#blockers +eot +eot +next +#upkeep +next +#draw +next +#main +next +#begin +next +#attackers +Snow-covered forest +[ASSERT] +COMBATATTACKERS +[PLAYER1] +inplay:Balduvian conjurer,Snow-covered forest +manapool:{G} +[PLAYER2] +life:18 +[END] \ No newline at end of file diff --git a/projects/mtg/bin/daily_build/template.exe b/projects/mtg/bin/daily_build/template.exe index e4737cbab..8865e636b 100644 Binary files a/projects/mtg/bin/daily_build/template.exe and b/projects/mtg/bin/daily_build/template.exe differ diff --git a/projects/mtg/include/AllAbilities.h b/projects/mtg/include/AllAbilities.h index 573add808..c248c4cf2 100644 --- a/projects/mtg/include/AllAbilities.h +++ b/projects/mtg/include/AllAbilities.h @@ -1388,7 +1388,8 @@ class GenericInstantAbility: public InstantAbility{ public: MTGAbility * ability; GenericInstantAbility(int _id, MTGCardInstance * _source, Damageable * _target, MTGAbility * ability): InstantAbility(_id, _source, _target), ability(ability){ - } + ability->target = _target; + } int addToGame(){ ability->forceDestroy = -1;