Reinstate the MillExileCost pay variant, as pointed out by Z.

This commit is contained in:
wrenczes@gmail.com
2010-10-14 08:14:49 +00:00
parent f7361fb030
commit 847ec5b7c5
2 changed files with 14 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ public:
class MillExileCost: public MillCost{
public:
MillExileCost(TargetChooser *_tc = NULL);
virtual int doPay();
};
//tap other cost

View File

@@ -163,6 +163,19 @@ 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;
}
//Tap target cost
TapTargetCost * TapTargetCost::clone() const{
TapTargetCost * ec = NEW TapTargetCost(*this);