just moved a bracket in ai STANDARD_LEVELUP. the 3 condiational was outside of the bracket, causing it to over ride previous. it should ALWAYS consider the "maxlevel" hint.

This commit is contained in:
omegablast2002@yahoo.com
2010-12-13 14:58:24 +00:00
parent 1046ffac02
commit 448099825a
+1 -1
View File
@@ -357,7 +357,6 @@ int AIAction::getEfficiency()
efficiency = 85; efficiency = 85;
//increase the efficeincy of leveling up by a small amount equal to current level. //increase the efficeincy of leveling up by a small amount equal to current level.
efficiency += currentlevel; efficiency += currentlevel;
}
if (p->game->hand->nb_cards > 0 && p->isAI()) if (p->game->hand->nb_cards > 0 && p->isAI())
{ {
@@ -370,6 +369,7 @@ int AIAction::getEfficiency()
efficiency = 100; efficiency = 100;
//in 2nd main, go all out and try to max stuff. //in 2nd main, go all out and try to max stuff.
} }
}
break; break;
} }
case MTGAbility::STANDARD_PUMP: case MTGAbility::STANDARD_PUMP: