-fix issue 35 - Card duplicated when moved from inplay to inplay
- fix issue 54 - Token not going away - (duplicate of issue 35)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-25 14:40:49 +00:00
parent 09d438b32a
commit e5751957dd
2 changed files with 21 additions and 1 deletions
@@ -0,0 +1,20 @@
#does wrath of god destroy all creature including tokens?
[INIT]
FIRSTMAIN
[PLAYER1]
hand:193751,Wrath of God
manapool:{3}{R}{R}{2}{W}{W}
[PLAYER2]
inplay:Grizzly Bears
[DO]
193751
wrath of god
human
[ASSERT]
COMBATEND
[PLAYER1]
graveyard:193751,wrath of god
manapool:{0}
[PLAYER2]
graveyard:Grizzly Bears
[END]
+1 -1
View File
@@ -216,7 +216,7 @@ int GuiPlay::receiveEventMinus(WEvent * e)
if ((game->players[0]->inPlay() == event->from) || if ((game->players[0]->inPlay() == event->from) ||
(game->players[1]->inPlay() == event->from)) (game->players[1]->inPlay() == event->from))
for (iterator it = cards.begin(); it != cards.end(); ++it) for (iterator it = cards.begin(); it != cards.end(); ++it)
if (event->card->previous == (*it)->card) if (event->card->previous == (*it)->card || event->card == (*it)->card )
{ {
CardView* cv = *it; CardView* cv = *it;
cs->Remove(cv); cs->Remove(cv);