fixed a bug where affinity was not counting when cards were being bounced back to your hand.

This commit is contained in:
omegablast2002@yahoo.com
2010-10-31 17:24:49 +00:00
parent e463be5ad0
commit 2640fc8280

View File

@@ -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";}