diff --git a/projects/mtg/src/ExtraCost.cpp b/projects/mtg/src/ExtraCost.cpp index 299cbc2b7..beff0cc5f 100644 --- a/projects/mtg/src/ExtraCost.cpp +++ b/projects/mtg/src/ExtraCost.cpp @@ -55,7 +55,6 @@ int ExtraCost::setPayment(MTGCardInstance * card){ return result; } - //life cost LifeCost * LifeCost::clone() const{ LifeCost * ec = NEW LifeCost(*this); @@ -96,6 +95,7 @@ int DiscardRandomCost::canPay(){ if(nbcards < 1) return 0; return 1; } + int DiscardRandomCost::doPay(){ MTGCardInstance * _target = (MTGCardInstance *) target; if(target){ @@ -163,17 +163,17 @@ MillExileCost::MillExileCost(TargetChooser *_tc) mCostRenderString = "Deplete To Exile"; } -int MillExileCost::doPay(){ - MTGCardInstance * _target = (MTGCardInstance *) target; - if(target){ - _target->controller()->game->putInZone(_target->controller()->game->library->cards[_target->controller()->game->library->nb_cards-1], - _target->controller()->game->library, - _target->controller()->game->exile); - target = NULL; - if (tc) tc->initTargets(); - return 1; - } - return 0; +int MillExileCost::doPay(){ + MTGCardInstance * _target = (MTGCardInstance *) target; + if(target){ + _target->controller()->game->putInZone(_target->controller()->game->library->cards[_target->controller()->game->library->nb_cards-1], + _target->controller()->game->library, + _target->controller()->game->exile); + target = NULL; + if (tc) tc->initTargets(); + return 1; + } + return 0; } //Tap target cost