complete revamp of alternative cost, changes in comment

This commit is contained in:
omegablast2002@yahoo.com
2010-09-06 05:38:04 +00:00
parent 1086abd3d7
commit 99b058c221
5 changed files with 151 additions and 38 deletions
-13
View File
@@ -371,19 +371,6 @@ int ManaCost::pay(ManaCost * _cost){
ManaCost * toPay = NEW ManaCost();
toPay->copy(_cost);
//---if you can pay the cards real cost, it is paided instead and alternative is not used.
if (toPay->alternative && canAfford(toPay->alternative) && !canAfford(_cost)){
//const char * getMenuText(){return "Put into play";}
toPay = toPay->alternative;
if (!canAfford(toPay) || canAfford(_cost)){
toPay->copy(_cost);
}
result = MANA_PAID_WITH_ALTERNATIVE;
}
if (toPay->kicker){
toPay->add(toPay->kicker);
if (!canAfford(toPay)){