mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Improve AIs destruction of Lands.
This commit is contained in:
@@ -242,15 +242,11 @@ public class AbilityFactoryDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Card choice = null;
|
Card choice = null;
|
||||||
|
// If the targets are only of one type, take the best
|
||||||
if (list.getNotType("Creature").size() == 0) {
|
if (list.getNotType("Creature").size() == 0) {
|
||||||
choice = CardFactoryUtil.getBestCreatureAI(list); // if the
|
choice = CardFactoryUtil.getBestCreatureAI(list);
|
||||||
// targets
|
} else if (list.getNotType("Land").isEmpty()) {
|
||||||
// are
|
choice = CardFactoryUtil.getBestLandAI(list);
|
||||||
// only
|
|
||||||
// creatures,
|
|
||||||
// take
|
|
||||||
// the
|
|
||||||
// best
|
|
||||||
} else {
|
} else {
|
||||||
choice = CardFactoryUtil.getMostExpensivePermanentAI(list, sa, true);
|
choice = CardFactoryUtil.getMostExpensivePermanentAI(list, sa, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user