reduced abilitygranting base eff to 0, aparently when Ai has nothing better to do it spams ability grantings, but it should be playing cards.

This commit is contained in:
omegablast2002@yahoo.com
2010-12-02 16:46:45 +00:00
parent b8658bf04f
commit 03bc34101f

View File

@@ -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;