From 5d26989f2cdb4d27384a12dd7840a13c35877908 Mon Sep 17 00:00:00 2001 From: "wrenczes@gmail.com" Date: Thu, 14 Oct 2010 10:02:16 +0000 Subject: [PATCH] Force the line endings to Unix on this file. --- projects/mtg/src/ExtraCost.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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