- Improved AI handling Dramatic Entrance with Legendary creatures.

This commit is contained in:
Sloth
2013-02-23 16:05:31 +00:00
parent 4e4182e8f6
commit 449df2703e

View File

@@ -264,6 +264,17 @@ public class ChangeZoneAi extends SpellAbilityAi {
if ((type != null) && p == ai) { if ((type != null) && p == ai) {
// AI only "knows" about his information // AI only "knows" about his information
list = CardLists.getValidCards(list, type, source.getController(), source); list = CardLists.getValidCards(list, type, source.getController(), source);
list = CardLists.filter(list, new Predicate<Card>() {
@Override
public boolean apply(final Card c) {
if (c.isType("Legendary")) {
if (!ai.getCardsIn(ZoneType.Battlefield, c.getName()).isEmpty()) {
return false;
}
}
return true;
}
});
} }
if (list.isEmpty()) { if (list.isEmpty()) {