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:
@@ -440,7 +440,7 @@ int AIAction::getEfficiency()
|
|||||||
|
|
||||||
case MTGAbility::STANDARDABILITYGRANT:
|
case MTGAbility::STANDARDABILITYGRANT:
|
||||||
{
|
{
|
||||||
efficiency = 10;
|
efficiency = 0;
|
||||||
MTGCardInstance * _target = (MTGCardInstance *) (a->target);
|
MTGCardInstance * _target = (MTGCardInstance *) (a->target);
|
||||||
if (!target)
|
if (!target)
|
||||||
break;
|
break;
|
||||||
@@ -461,7 +461,7 @@ int AIAction::getEfficiency()
|
|||||||
efficiency += (15 * target->DangerRanking())/p->game->hand->nb_cards;
|
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;
|
efficiency += (15 * target->DangerRanking())/p->game->hand->nb_cards;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user