added support for alternative casting cost, evoke, added support for phantom cycle,hydras, added support for exile/bounce as casting cost

This commit is contained in:
omegablast2002@yahoo.com
2010-08-30 18:45:38 +00:00
parent e6769fcfe9
commit 0b4dde558b
20 changed files with 347 additions and 13 deletions
+32
View File
@@ -125,6 +125,38 @@ MTGCardInstance * MTGPlayerCards::putInGraveyard(MTGCardInstance * card){
}
MTGCardInstance * MTGPlayerCards::putInExile(MTGCardInstance * card){
MTGCardInstance * copy = NULL;
MTGRemovedFromGame * exile = card->owner->game->exile;
if (inPlay->hasCard(card)){
copy = putInZone(card,inPlay, exile);
}else if (stack->hasCard(card)){
copy = putInZone(card,stack, exile);
}
if(graveyard->hasCard(card)){
copy = putInZone(card,graveyard, exile);
}else{
copy = putInZone(card,hand, exile);
}
return copy;
}
MTGCardInstance * MTGPlayerCards::putInHand(MTGCardInstance * card){
MTGCardInstance * copy = NULL;
MTGHand * hand = card->owner->game->hand;
if (inPlay->hasCard(card)){
copy = putInZone(card,inPlay, hand);
}else if (stack->hasCard(card)){
copy = putInZone(card,stack, hand);
}
if(graveyard->hasCard(card)){
copy = putInZone(card,graveyard, hand);
}else{
copy = putInZone(card,hand, hand);
}
return copy;
}
MTGCardInstance * MTGPlayerCards::putInZone(MTGCardInstance * card, MTGGameZone * from, MTGGameZone * to){
MTGCardInstance * copy = NULL;
GameObserver *g = GameObserver::GetInstance();