From 2640fc82801a027e49c1cb98dc83d398e1fd9272 Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sun, 31 Oct 2010 17:24:49 +0000 Subject: [PATCH] fixed a bug where affinity was not counting when cards were being bounced back to your hand. --- projects/mtg/src/MTGRules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/MTGRules.cpp b/projects/mtg/src/MTGRules.cpp index 3f7424b11..9acfef150 100644 --- a/projects/mtg/src/MTGRules.cpp +++ b/projects/mtg/src/MTGRules.cpp @@ -1421,7 +1421,7 @@ int MTGAffinityRule::receiveEvent(WEvent * event){ //--------- //when cards with affinity enter you hand from anywhere a redux is applied to them for the artifacts in play. if(ok == 1){//enters play from anywhere - if (e->from == p->game->graveyard || e->from == p->game->hand || e->from == p->game->library || e->from == p->game->exile || e->from == p->game->stack || e->from == p->opponent()->game->battlefield || e->from == p->game->temp){ + if (e->from == p->game->graveyard || e->from == p->game->hand || e->from == p->game->library || e->from == p->game->exile || e->from == p->game->stack || e->from == p->opponent()->game->battlefield || e->from == p->game->temp || e->from == p->game->battlefield){ MTGCardInstance * card = e->card->previous; if(card && card->has(Constants::AFFINITYARTIFACTS)) {color = 0 ; type = "artifact";} if(card && card->has(Constants::AFFINITYSWAMP)) {color = 0 ; type = "swamp";}