From 19c3e903bc94c3a10796e9683f00b077ad13283e Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Sat, 12 Feb 2011 03:00:45 +0000 Subject: [PATCH] just cleaning, removed a double check i added ages ago that isnt really needed anymore, ai handles fine now without having to double check if it can cast after it already did so. --- projects/mtg/include/AIPlayer.h | 2 -- projects/mtg/src/AIPlayer.cpp | 7 ------- 2 files changed, 9 deletions(-) diff --git a/projects/mtg/include/AIPlayer.h b/projects/mtg/include/AIPlayer.h index 71bbe748b..2d21734e6 100644 --- a/projects/mtg/include/AIPlayer.h +++ b/projects/mtg/include/AIPlayer.h @@ -31,7 +31,6 @@ public: NestedAbility * nability; Player * player; int id; - bool checked; MTGCardInstance * click; MTGCardInstance * target; // TODO Improve @@ -95,7 +94,6 @@ protected: public: AIStats * stats; int agressivity; - bool Checked; bool forceBestAbilityUse; void End(){}; virtual int displayStack() {return 0;}; diff --git a/projects/mtg/src/AIPlayer.cpp b/projects/mtg/src/AIPlayer.cpp index 4f29718bd..58d217e67 100644 --- a/projects/mtg/src/AIPlayer.cpp +++ b/projects/mtg/src/AIPlayer.cpp @@ -45,7 +45,6 @@ AIPlayer::AIPlayer(MTGDeck * deck, string file, string fileSmall) : stats = NULL; agressivity = 50; forceBestAbilityUse = false; - Checked = false; playMode = Player::MODE_AI; } @@ -1457,18 +1456,12 @@ int AIPlayerBaka::computeActions() { selectAbility(); } - if (p->getManaPool()->getConvertedCost() > 0 && Checked == false)//not the best thing ever, but allows the Ai a chance to double check if its mana pool has something before moving on, atleast one time. - { - Checked = true; - computeActions(); - } break; } case Constants::MTG_PHASE_COMBATATTACKERS: chooseAttackers(); break; case Constants::MTG_PHASE_ENDOFTURN: - Checked = false; break; default: selectAbility();