Merge pull request #3398 from kevlahnota/newmaster2

prevent NPE
This commit is contained in:
Anthony Calosa
2023-07-04 06:43:57 +08:00
committed by GitHub

View File

@@ -2424,7 +2424,7 @@ public class ComputerUtil {
} }
} }
} }
} else if (logic.equals("ProtectionFromType")) { } else if ("ProtectionFromType".equals(logic)) {
// TODO: protection vs. damage-dealing and milling instants/sorceries in low creature decks and the like? // TODO: protection vs. damage-dealing and milling instants/sorceries in low creature decks and the like?
// Maybe non-creature artifacts in certain cases? // Maybe non-creature artifacts in certain cases?
List<String> choices = ImmutableList.of("Creature", "Planeswalker"); // types that make sense to get protected against List<String> choices = ImmutableList.of("Creature", "Planeswalker"); // types that make sense to get protected against