changed ai eff return on token creation. over 50 tokens on my battlefield return 0.

changed an inefficient check on phaseskip.
This commit is contained in:
omegablast2002@yahoo.com
2013-03-21 01:28:56 +00:00
parent 8b626b378f
commit 9b44d627a3
3 changed files with 19 additions and 1 deletions

View File

@@ -595,6 +595,9 @@ int OrderedAIAction::getEfficiency()
efficiency = 0;
}
}
if(p->game->battlefield->countByType("token") >= 50)
efficiency = 0;
}
//At this point the "basic" efficiency is computed, we further tweak it depending on general decisions, independent of theAbility type
@@ -1887,7 +1890,20 @@ MTGCardInstance * AIPlayerBaka::activateCombo()
if(comboCards.size())
{
nextCardToPlay = comboCards.back();
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
DebugTrace("ai is doing a combo:" << nextCardToPlay->getName());
if (game->playRestrictions->canPutIntoZone(nextCardToPlay, game->stack) == PlayRestriction::CANT_PLAY)
return NULL;
comboCards.pop_back();