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

@@ -869,7 +869,7 @@ void GameObserver::gameStateBasedEffects()
//Auto skip Phases
int skipLevel = (currentPlayer->playMode == Player::MODE_TEST_SUITE || mLoading) ? Constants::ASKIP_NONE
: options[Options::ASPHASES].number;
int nrCreatures = currentPlayer->game->inPlay->countByType("Creature");
int nrCreatures = currentPlayer->game->inPlay->hasType("creature")?1:0;
if (skipLevel == Constants::ASKIP_SAFE || skipLevel == Constants::ASKIP_FULL)
{