diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 5f4facc82..2c3647a44 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -1,3 +1,5 @@ +ondu_cleric.txt +/* ######################## #Generic engine features ######################## @@ -174,6 +176,7 @@ nightmare.txt northern_paladin.txt northern_paladin2.txt Nyxathid.txt +ondu_cleric.txt orcish_artillery.txt orcish_lumberjack.txt overrun.txt diff --git a/projects/mtg/bin/Res/test/ondu_cleric.txt b/projects/mtg/bin/Res/test/ondu_cleric.txt new file mode 100644 index 000000000..48884680b --- /dev/null +++ b/projects/mtg/bin/Res/test/ondu_cleric.txt @@ -0,0 +1,20 @@ +#Bug: Ondu Cleric doesn't give life +#http://code.google.com/p/wagic/issues/detail?id=125 +[INIT] +FIRSTMAIN +[PLAYER1] +hand:ondu cleric,stonework puma +manapool:{4}{W} +[PLAYER2] +[DO] +ondu cleric +choice 0 +stonework puma +choice 0 +[ASSERT] +FIRSTMAIN +[PLAYER1] +life:23 +inplay:ondu cleric,stonework puma +[PLAYER2] +[END] \ No newline at end of file diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index f1dcc5775..d511e68b7 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -273,6 +273,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG tc = tcf.createTargetChooser(starget, card); } if (tc) a1 = NEW GenericTargetAbility(id, card, tc, a1); + else a1 = NEW GenericActivatedAbility(id, card, a1,NULL); return NEW MayAbility(id,a1,card); }