- Improved the AILogic "MostProminentHumanControls".

This commit is contained in:
Sloth
2012-05-07 16:40:24 +00:00
parent e3f56a0dea
commit 3b20487e9b

View File

@@ -359,6 +359,10 @@ public final class AbilityFactoryChoose {
if (logic.equals("MostProminentHumanControls")) { if (logic.equals("MostProminentHumanControls")) {
chosen = CardFactoryUtil.getMostProminentCreatureType(AllZone.getHumanPlayer() chosen = CardFactoryUtil.getMostProminentCreatureType(AllZone.getHumanPlayer()
.getCardsIn(ZoneType.Battlefield)); .getCardsIn(ZoneType.Battlefield));
if (!CardUtil.isACreatureType(chosen) || invalidTypes.contains(chosen)) {
chosen = CardFactoryUtil.getMostProminentCreatureType(AllZoneUtil.getCardsInGame()
.getController(AllZone.getHumanPlayer()));
}
} }
if (logic.equals("MostProminentInComputerDeck")) { if (logic.equals("MostProminentInComputerDeck")) {
chosen = CardFactoryUtil.getMostProminentCreatureType(AllZoneUtil.getCardsInGame() chosen = CardFactoryUtil.getMostProminentCreatureType(AllZoneUtil.getCardsInGame()