final adjustment, moved a couple things in the foreach and altered a condiation to suit unknown foreachs, generally its always a good idea to use these cards, since thier effects only get better and better.
This commit is contained in:
@@ -405,22 +405,19 @@ int AIAction::getEfficiency()
|
|||||||
{
|
{
|
||||||
AbilityFactory af;
|
AbilityFactory af;
|
||||||
int suggestion = af.abilityEfficiency(a, p, MODE_ABILITY);
|
int suggestion = af.abilityEfficiency(a, p, MODE_ABILITY);
|
||||||
if (target)
|
|
||||||
{
|
if (target && a->naType != MTGAbility::MANA_PRODUCER && ((suggestion == BAKA_EFFECT_BAD && p == target->controller()) || (suggestion == BAKA_EFFECT_GOOD && p
|
||||||
if (a->naType != MTGAbility::MANA_PRODUCER && ((suggestion == BAKA_EFFECT_BAD && p == target->controller()) || (suggestion == BAKA_EFFECT_GOOD && p
|
|
||||||
!= target->controller())))
|
!= target->controller())))
|
||||||
{
|
{
|
||||||
efficiency = 0;
|
efficiency = 0;
|
||||||
}
|
}
|
||||||
else if (a->naType != MTGAbility::MANA_PRODUCER)
|
else if (a->naType != MTGAbility::MANA_PRODUCER && (g->getCurrentGamePhase() == Constants::MTG_PHASE_FIRSTMAIN || g->getCurrentGamePhase() == Constants::MTG_PHASE_SECONDMAIN ))
|
||||||
{
|
{
|
||||||
|
//if its not a manaproducing foreach, and its not targetted, its eff is 90.
|
||||||
|
//added this basically to cover the unknown foreachs, or untrained ones which were not targetted effects.
|
||||||
efficiency = 90;
|
efficiency = 90;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
efficiency = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user