From 3826355b6b8ecbfd4031e52cbef5a485c10d272f Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 14 Feb 2011 00:28:44 +0000 Subject: [PATCH] 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..... --- projects/mtg/src/AIPlayer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/mtg/src/AIPlayer.cpp b/projects/mtg/src/AIPlayer.cpp index 7ca842b5b..e2fd282af 100644 --- a/projects/mtg/src/AIPlayer.cpp +++ b/projects/mtg/src/AIPlayer.cpp @@ -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; } }