- Fixed AI using Elven Rite.

This commit is contained in:
Sloth
2013-05-03 13:53:21 +00:00
parent 7a901e33cd
commit da2e115e4c

View File

@@ -129,13 +129,15 @@ public class CountersPutAi extends SpellAbilityAi {
// TODO is this good enough? for up to amounts?
break;
}
} else if (divided) {
abTgt.addDividedAllocation(choice, amount);
break;
}
list.remove(choice);
abTgt.addTarget(choice);
if (divided) {
abTgt.addDividedAllocation(choice, amount);
break;
}
}
} else {
final List<Card> cards = AbilityUtils.getDefinedCards(sa.getSourceCard(), sa.getParam("Defined"), sa);
@@ -223,12 +225,13 @@ public class CountersPutAi extends SpellAbilityAi {
// TODO is this good enough? for up to amounts?
break;
}
} else if (divided) {
abTgt.addDividedAllocation(choice, amount);
break;
}
list.remove(choice);
abTgt.addTarget(choice);
if (divided) {
abTgt.addDividedAllocation(choice, amount);
break;
}
}
}