From 40e663e2cfa60a5277163cd47ae842bda8c1e7c9 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 24 Sep 2020 20:00:58 -0400 Subject: [PATCH] [ZNR] fixed Crawling Barrens giving multiple instances of added subtypes and card types (#7046) --- .../common/continuous/BecomesCreatureSourceEffect.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java b/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java index 09a34e730b..882d828e6a 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/continuous/BecomesCreatureSourceEffect.java @@ -90,6 +90,9 @@ public class BecomesCreatureSourceEffect extends ContinuousEffectImpl implements permanent.getCardType().clear(); } for (CardType cardType : token.getCardType()) { + if (permanent.getCardType().contains(cardType)) { + continue; + } permanent.addCardType(cardType); } @@ -97,7 +100,12 @@ public class BecomesCreatureSourceEffect extends ContinuousEffectImpl implements permanent.getSubtype(game).retainAll(SubType.getLandTypes()); } if (!token.getSubtype(game).isEmpty()) { - permanent.getSubtype(game).addAll(token.getSubtype(game)); + for (SubType subType : token.getSubtype(game)) { + if (permanent.hasSubtype(subType, game)) { + continue; + } + permanent.getSubtype(game).add(subType); + } } permanent.setIsAllCreatureTypes(token.isAllCreatureTypes()); }