mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Improved AI handling Dramatic Entrance with Legendary creatures.
This commit is contained in:
@@ -264,6 +264,17 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
||||
if ((type != null) && p == ai) {
|
||||
// AI only "knows" about his information
|
||||
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()) {
|
||||
|
||||
Reference in New Issue
Block a user