Force the line endings to Unix on this file.

This commit is contained in:
wrenczes@gmail.com
2010-10-14 10:02:16 +00:00
parent 80edf7279c
commit 5d26989f2c
+12 -12
View File
@@ -55,7 +55,6 @@ int ExtraCost::setPayment(MTGCardInstance * card){
return result; return result;
} }
//life cost //life cost
LifeCost * LifeCost::clone() const{ LifeCost * LifeCost::clone() const{
LifeCost * ec = NEW LifeCost(*this); LifeCost * ec = NEW LifeCost(*this);
@@ -96,6 +95,7 @@ int DiscardRandomCost::canPay(){
if(nbcards < 1) return 0; if(nbcards < 1) return 0;
return 1; return 1;
} }
int DiscardRandomCost::doPay(){ int DiscardRandomCost::doPay(){
MTGCardInstance * _target = (MTGCardInstance *) target; MTGCardInstance * _target = (MTGCardInstance *) target;
if(target){ if(target){
@@ -163,17 +163,17 @@ MillExileCost::MillExileCost(TargetChooser *_tc)
mCostRenderString = "Deplete To Exile"; mCostRenderString = "Deplete To Exile";
} }
int MillExileCost::doPay(){ int MillExileCost::doPay(){
MTGCardInstance * _target = (MTGCardInstance *) target; MTGCardInstance * _target = (MTGCardInstance *) target;
if(target){ if(target){
_target->controller()->game->putInZone(_target->controller()->game->library->cards[_target->controller()->game->library->nb_cards-1], _target->controller()->game->putInZone(_target->controller()->game->library->cards[_target->controller()->game->library->nb_cards-1],
_target->controller()->game->library, _target->controller()->game->library,
_target->controller()->game->exile); _target->controller()->game->exile);
target = NULL; target = NULL;
if (tc) tc->initTargets(); if (tc) tc->initTargets();
return 1; return 1;
} }
return 0; return 0;
} }
//Tap target cost //Tap target cost