init'ed the variable "mFindingAbility" bool in Aiplayer constructor and changed its name from previous name "findingAbility" to keep in line with recent code rules.
added COMMENTS to explain the variable.
This commit is contained in:
@@ -85,9 +85,9 @@ int AIMomirPlayer::computeActions()
|
||||
int currentGamePhase = g->getCurrentGamePhase();
|
||||
if (g->isInterrupting == this)
|
||||
{ // interrupting
|
||||
if (!findingAbility)
|
||||
if (!mFindingAbility)//if not looking for an activated ability to use, then go ahead and look now.
|
||||
{
|
||||
AIPlayer::findingAbility = true;
|
||||
mFindingAbility = true;
|
||||
selectAbility();
|
||||
}
|
||||
return 1;
|
||||
@@ -123,9 +123,9 @@ int AIMomirPlayer::computeActions()
|
||||
break;
|
||||
}
|
||||
case Constants::MTG_PHASE_SECONDMAIN:
|
||||
if (!findingAbility)
|
||||
if (!mFindingAbility)//if not looking for an activated ability to use, then go ahead and look now.
|
||||
{
|
||||
AIPlayer::findingAbility = true;
|
||||
mFindingAbility = true;
|
||||
selectAbility();
|
||||
}
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user