From 17cf3cd129105432a4a5afb823a6228bd476c695 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Fri, 31 Jan 2020 21:38:32 +0400 Subject: [PATCH] Fixed name compare --- Mage.Sets/src/mage/cards/a/AshioksErasure.java | 2 +- Mage.Sets/src/mage/cards/d/DeathbellowWarCry.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/a/AshioksErasure.java b/Mage.Sets/src/mage/cards/a/AshioksErasure.java index f72c3b0bca..1c65ff517f 100644 --- a/Mage.Sets/src/mage/cards/a/AshioksErasure.java +++ b/Mage.Sets/src/mage/cards/a/AshioksErasure.java @@ -146,7 +146,7 @@ class AshioksErasureReplacementEffect extends ContinuousRuleModifyingEffectImpl Card exiledCard = cards.iterator().next(); if (exiledCard != null) { - return exiledCard.getName().equals(card.getName()); + return CardUtil.haveSameNames(exiledCard, card); } return false; } diff --git a/Mage.Sets/src/mage/cards/d/DeathbellowWarCry.java b/Mage.Sets/src/mage/cards/d/DeathbellowWarCry.java index 3a4c639968..18824247a4 100644 --- a/Mage.Sets/src/mage/cards/d/DeathbellowWarCry.java +++ b/Mage.Sets/src/mage/cards/d/DeathbellowWarCry.java @@ -12,6 +12,7 @@ import mage.filter.FilterCard; import mage.filter.common.FilterCreatureCard; import mage.game.Game; import mage.target.common.TargetCardInLibrary; +import mage.util.CardUtil; import java.util.Objects; import java.util.UUID; @@ -71,6 +72,6 @@ class DeathbellowWarCryTarget extends TargetCardInLibrary { .map(game::getCard) .filter(Objects::nonNull) .map(Card::getName) - .noneMatch(card.getName()::equals); + .noneMatch(n -> CardUtil.haveSameNames(n, card.getName())); } }