From 391bdaf0d871d021f906fddf2aca1c49c82534d4 Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Sat, 7 Feb 2009 02:43:42 +0000 Subject: [PATCH] Erwan - missing "removedFromGame" initialization fixed (see celestial_purge test) --- projects/mtg/bin/Res/test/_tests.txt | 1 + projects/mtg/bin/Res/test/celestial_purge.txt | 18 ++++++++++++++++++ projects/mtg/src/MTGGameZones.cpp | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 projects/mtg/bin/Res/test/celestial_purge.txt diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 43bf5947b..c76a1c0c5 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -20,6 +20,7 @@ ascendant_evincar.txt ascendant_evincar2.txt brass_man.txt castle.txt +celestial_purge.txt circle_of_protection.txt composite_golem.txt control_magic.txt diff --git a/projects/mtg/bin/Res/test/celestial_purge.txt b/projects/mtg/bin/Res/test/celestial_purge.txt new file mode 100644 index 000000000..69492a32e --- /dev/null +++ b/projects/mtg/bin/Res/test/celestial_purge.txt @@ -0,0 +1,18 @@ +#Testing Celestial purge on Canyon Minotaur +[INIT] +FIRSTMAIN +[PLAYER1] +hand:183055 +manapool:{1}{W} +[PLAYER2] +inplay:184994 +[DO] +183055 +184994 +[ASSERT] +FIRSTMAIN +[PLAYER1] +graveyard:183055 +manapool:{0} +[PLAYER2] +[END] \ No newline at end of file diff --git a/projects/mtg/src/MTGGameZones.cpp b/projects/mtg/src/MTGGameZones.cpp index 4ed0bff49..4a51f5203 100644 --- a/projects/mtg/src/MTGGameZones.cpp +++ b/projects/mtg/src/MTGGameZones.cpp @@ -59,6 +59,8 @@ void MTGPlayerCards::init(){ hand = NEW MTGHand(); inPlay = NEW MTGInPlay(); stack = NEW MTGStack(); + stack = NEW MTGStack(); + removedFromGame = NEW MTGRemovedFromGame(); }