From 03bc34101f250f01b49646c85217e943e72b1aff Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Thu, 2 Dec 2010 16:46:45 +0000 Subject: [PATCH] reduced abilitygranting base eff to 0, aparently when Ai has nothing better to do it spams ability grantings, but it should be playing cards. --- projects/mtg/src/AIPlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/AIPlayer.cpp b/projects/mtg/src/AIPlayer.cpp index 77402c0c7..426fbfe20 100644 --- a/projects/mtg/src/AIPlayer.cpp +++ b/projects/mtg/src/AIPlayer.cpp @@ -440,7 +440,7 @@ int AIAction::getEfficiency() case MTGAbility::STANDARDABILITYGRANT: { - efficiency = 10; + efficiency = 0; MTGCardInstance * _target = (MTGCardInstance *) (a->target); if (!target) break; @@ -461,7 +461,7 @@ int AIAction::getEfficiency() efficiency += (15 * target->DangerRanking())/p->game->hand->nb_cards; } - if (!target->has(a->abilitygranted) && g->getCurrentGamePhase() == Constants::MTG_PHASE_FIRSTMAIN) + if (!target->has(a->abilitygranted) && g->getCurrentGamePhase() == Constants::MTG_PHASE_COMBATBEGIN) { efficiency += (15 * target->DangerRanking())/p->game->hand->nb_cards;