diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 8935e3d57..710f1e73e 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -131,6 +131,7 @@ pygmy_troll.txt pyroclasm.txt rampant_growth.txt recover.txt +regal_force.txt resurrection.txt righteous_cause.txt rootwalla.txt diff --git a/projects/mtg/bin/Res/test/regal_force.txt b/projects/mtg/bin/Res/test/regal_force.txt new file mode 100644 index 000000000..f250dc41d --- /dev/null +++ b/projects/mtg/bin/Res/test/regal_force.txt @@ -0,0 +1,21 @@ +#Bug: Regal force draws when new creatures come into play +[INIT] +FIRSTMAIN +[PLAYER1] +inplay:grizzly bears,forest +hand:llanowar elves,regal force +manapool:{4}{G}{G}{G} +library:plains,mountain,swamp +[PLAYER2] +[DO] +regal force +forest +llanowar elves +[ASSERT] +FIRSTMAIN +[PLAYER1] +inplay:grizzly bears,forest,regal force,llanowar elves +hand:mountain,swamp +library:plains +[PLAYER2] +[END] \ No newline at end of file diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index bb4cb3657..13cd3688c 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -276,6 +276,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG int oneShot = 0; if (card->hasType("sorcery") || card->hasType("instant")) oneShot = 1; if (i == 3) oneShot = 1; + if (a->oneShot) oneShot = 1; switch(i){ case 0: result = NEW ALord(id, card, lordTargets, lordIncludeSelf, a); break; case 1: result = NEW AForeach(id, card, target,lordTargets, lordIncludeSelf, a); break;