- Use a separate AI logic for "Detain target nonland permanent".

This commit is contained in:
Agetian
2017-07-28 07:44:02 +00:00
parent b6fcbba57d
commit 839ced1b32
4 changed files with 5 additions and 5 deletions

View File

@@ -462,9 +462,9 @@ public class PumpAi extends PumpAiBase {
}
}
// Detain and similar effects: don't target noncreature permanents that don't have
// Detain target nonland permanent: don't target noncreature permanents that don't have
// any activated abilities.
if ("HIDDEN CARDNAME can't attack or block. & HIDDEN CARDNAME's activated abilities can't be activated.".equals(sa.getParam("KW"))) {
if ("DetainNonLand".equals(sa.getParam("AILogic"))) {
list = CardLists.filter(list, Predicates.or(CardPredicates.Presets.CREATURES, new Predicate<Card>() {
@Override
public boolean apply(Card card) {