couple more changes in Ai, and a fix for a crash which happened with phaseaction when the target was removed before the effect resolved.
This commit is contained in:
@@ -485,6 +485,7 @@ int AIAction::getEfficiency()
|
||||
}
|
||||
|
||||
case MTGAbility::FOREACH:
|
||||
case MTGAbility::MANA_PRODUCER://only way to hit this condition is nested manaabilities, ai skips manaproducers by defualt when finding an ability to use.
|
||||
{
|
||||
MTGCardInstance * _target = (MTGCardInstance *) (a->target);
|
||||
MTGAbility * a = AbilityFactory::getCoreAbility(ability);
|
||||
@@ -662,10 +663,6 @@ int AIAction::getEfficiency()
|
||||
}
|
||||
break;
|
||||
}
|
||||
case MTGAbility::MANA_PRODUCER:
|
||||
efficiency = 0;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (target)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user