fixed storm spellcount, affinity/manaredux invis mana, added true "retrace" added 3 new extra cost types.

This commit is contained in:
omegablast2002@yahoo.com
2010-09-14 17:15:33 +00:00
parent 58d67d630a
commit b507053a1d
18 changed files with 551 additions and 15 deletions
+17 -4
View File
@@ -142,14 +142,28 @@ MTGCardInstance * MTGPlayerCards::putInExile(MTGCardInstance * card){
copy = putInZone(card,inPlay, exile);
}else if (stack->hasCard(card)){
copy = putInZone(card,stack, exile);
}
if(graveyard->hasCard(card)){
}else if(graveyard->hasCard(card)){
copy = putInZone(card,graveyard, exile);
}else{
copy = putInZone(card,hand, exile);
}
return copy;
}
MTGCardInstance * MTGPlayerCards::putInLibrary(MTGCardInstance * card){
MTGCardInstance * copy = NULL;
MTGLibrary * library = card->owner->game->library;
MTGHand * hand = card->owner->game->hand;
if (inPlay->hasCard(card)){
copy = putInZone(card,inPlay, library);
}else if (stack->hasCard(card)){
copy = putInZone(card,stack, library);
}else if(graveyard->hasCard(card)){
copy = putInZone(card,graveyard, library);
}else{
copy = putInZone(card,hand, library);
}
return copy;
}
MTGCardInstance * MTGPlayerCards::putInHand(MTGCardInstance * card){
MTGCardInstance * copy = NULL;
@@ -158,8 +172,7 @@ MTGCardInstance * MTGPlayerCards::putInHand(MTGCardInstance * card){
copy = putInZone(card,inPlay, hand);
}else if (stack->hasCard(card)){
copy = putInZone(card,stack, hand);
}
if(graveyard->hasCard(card)){
}else if(graveyard->hasCard(card)){
copy = putInZone(card,graveyard, hand);
}else{
copy = putInZone(card,hand, hand);