-fix issue 192 (graphical issue when tapped card changes controller)
This commit is contained in:
wagic.the.homebrew@gmail.com
2010-01-15 15:09:41 +00:00
parent fea7985212
commit 187e108cdb
3 changed files with 4 additions and 8 deletions

View File

@@ -12,6 +12,7 @@
#DESC: display doesn't change, but Assassinate
#DESC: cannot target it any more. Conclusion: The
#DESC: game state is correct, but the display not.
[INIT]
firstmain
[PLAYER1]
hand:Control Magic,Enervate,Assassinate,Twitch

View File

@@ -231,7 +231,8 @@ int GuiPlay::receiveEventPlus(WEvent * e)
else
card = NEW CardView(CardSelector::playZone, event->card, 0, 0);
cards.push_back(card);
card->t = 0; card->alpha = 255;
card->t = event->card->isTapped() ? M_PI / 2 : 0;
card->alpha = 255;
cs->Add(card);
Replace();
return 1;

View File

@@ -148,19 +148,13 @@ MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone
}
MTGCardInstance * ret = copy;
/*if (card->isToken){
if (to != g->players[0]->game->inPlay && to != g->players[1]->game->inPlay){
to = garbage;
ret = NULL;
}
}*/
to->addCard(copy);
copy->changedZoneRecently = 1.f;
GameObserver *g = GameObserver::GetInstance();
WEvent * e = NEW WEventZoneChange(copy, from, to);
g->receiveEvent(e);
//delete e;
return ret;
}
return card; //Error