diff --git a/forge-game/src/main/java/forge/game/card/CardProperty.java b/forge-game/src/main/java/forge/game/card/CardProperty.java index b1a8b2d1dd4..6cb152973a5 100644 --- a/forge-game/src/main/java/forge/game/card/CardProperty.java +++ b/forge-game/src/main/java/forge/game/card/CardProperty.java @@ -848,7 +848,7 @@ public class CardProperty { final String restriction = property.split("sharesAllCardTypesWithOther ")[1]; CardCollection list = AbilityUtils.getDefinedCards(source, restriction, spellAbility); list.remove(card); - return Iterables.any(list, CardPredicates.sharesAllCardTypesWith(card)); + return list.anyMatch(CardPredicates.sharesAllCardTypesWith(card)); } else if (property.startsWith("sharesLandTypeWith")) { final String restriction = property.split("sharesLandTypeWith ")[1]; if (!AbilityUtils.getDefinedCards(source, restriction, spellAbility).anyMatch(CardPredicates.sharesLandTypeWith(card))) {