teaching ai to select X on the menu again.
This commit is contained in:
@@ -1683,6 +1683,12 @@ int AIPlayerBaka::selectMenuOption()
|
|||||||
if(currentMenu)
|
if(currentMenu)
|
||||||
for (unsigned int mk = 0; mk < currentMenu->abilities.size(); mk++)
|
for (unsigned int mk = 0; mk < currentMenu->abilities.size(); mk++)
|
||||||
{
|
{
|
||||||
|
if (dynamic_cast<AAWhatsX*>(currentMenu->abilities[0]))
|
||||||
|
{
|
||||||
|
int potent = manaPool->getConvertedCost();
|
||||||
|
int aftercost = potent - currentMenu->abilities[0]->source->getManaCost()->getConvertedCost();
|
||||||
|
return aftercost;
|
||||||
|
}
|
||||||
int checked = getEfficiency(currentMenu->abilities[mk]);
|
int checked = getEfficiency(currentMenu->abilities[mk]);
|
||||||
if (checked > 60 && checked > checkedLast)
|
if (checked > 60 && checked > checkedLast)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user