From 53b9bc412faff431561694e89079784f2be46a24 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Sun, 30 Oct 2011 09:35:04 +0000 Subject: [PATCH] Fix for issue 749 (autohand/autograveyard/etc... don't work for player2) --- projects/mtg/bin/Res/test/_tests.txt | 1 + projects/mtg/bin/Res/test/rancor_i749.txt | 27 +++++++++++++++++++++++ projects/mtg/src/MTGAbility.cpp | 1 - 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 projects/mtg/bin/Res/test/rancor_i749.txt diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 825430819..c5273bf67 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -512,6 +512,7 @@ rampant_growth.txt rancid_earth_with_threshold.txt rancid_earth_without_threshold.txt rancor.txt +rancor_i749.txt ray_of_command.txt ray_of_command_i176.txt razor_golem.txt diff --git a/projects/mtg/bin/Res/test/rancor_i749.txt b/projects/mtg/bin/Res/test/rancor_i749.txt new file mode 100644 index 000000000..257c9b90f --- /dev/null +++ b/projects/mtg/bin/Res/test/rancor_i749.txt @@ -0,0 +1,27 @@ +#http://code.google.com/p/wagic/issues/detail?id=749 +# @movedTo triggers don't trigger for the AI +#When Rancor is put into a graveyard from the battlefield, return Rancor to its owner's hand. +[INIT] +SECONDMAIN +[PLAYER1] +[PLAYER2] +inplay:Llanowar Elves,forest,mountain +hand:Rancor,Shock +[DO] +eot +goto firstmain +Forest +Rancor +Llanowar Elves +Mountain +Shock +Llanowar Elves +[ASSERT] +FIRSTMAIN +[PLAYER1] +[PLAYER2] +graveyard:Llanowar Elves,Shock +hand:Rancor +inplay:forest,mountain +manapool:{0} +[END] \ No newline at end of file diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 72f16fafb..87c7fd5e5 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -2708,7 +2708,6 @@ int AbilityFactory::getAbilities(vector * v, Spell * spell, MTGCar break; } //Other zones needed ? - return 0; } } else