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.
This commit is contained in:
@@ -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;};
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user