reverting a peice of a change i did a couple days ago...

the way getPotentialMana and the payment of cost needs a SERIOUS revamp, i would almost say that these function only work because of bugs.....
This commit is contained in:
omegablast2002@yahoo.com
2011-02-14 00:28:44 +00:00
parent e92e96a375
commit 3826355b6b

View File

@@ -112,7 +112,7 @@ bool AIPlayer::tapLandsForMana(ManaCost * cost, MTGCardInstance * target)
{
used[card] = true;
} //http://code.google.com/p/wagic/issues/detail?id=76
if (used[card] == false && amp->isReactingToClick(card) && amp->output->getConvertedCost() >= 1)
if (!used[card] && amp->isReactingToClick(card) && amp->output->getConvertedCost() >= 1)
{
used[card] = true;
int doUse = 1;
@@ -122,7 +122,6 @@ bool AIPlayer::tapLandsForMana(ManaCost * cost, MTGCardInstance * target)
{
diff->remove(i, 1);
doUse = 0;
used[card] = false;
break;
}
}