fix for a bug in combohint. ai will now rarely want to use a card outside of a combo if it is to be held for a combo

This commit is contained in:
omegablast2002@yahoo.com
2013-03-13 01:11:58 +00:00
parent cd54ad7012
commit a7aeb7efe5
2 changed files with 8 additions and 5 deletions

View File

@@ -1736,9 +1736,8 @@ MTGCardInstance * AIPlayerBaka::FindCardToPlay(ManaCost * pMana, const char * ty
}
else
{
int chance = int(getRandomGenerator()->random() % 100);
if(chance > 1)
continue;//1% chance to just continue evaluating the card to cast.
nextCardToPlay = NULL;
continue;
}
}
int currentCost = card->getManaCost()->getConvertedCost();