Fixed name compare

This commit is contained in:
Oleg Agafonov 2020-01-31 21:38:32 +04:00
parent 5d29467f8f
commit 17cf3cd129
2 changed files with 3 additions and 2 deletions

View file

@ -146,7 +146,7 @@ class AshioksErasureReplacementEffect extends ContinuousRuleModifyingEffectImpl
Card exiledCard = cards.iterator().next(); Card exiledCard = cards.iterator().next();
if (exiledCard != null) { if (exiledCard != null) {
return exiledCard.getName().equals(card.getName()); return CardUtil.haveSameNames(exiledCard, card);
} }
return false; return false;
} }

View file

@ -12,6 +12,7 @@ import mage.filter.FilterCard;
import mage.filter.common.FilterCreatureCard; import mage.filter.common.FilterCreatureCard;
import mage.game.Game; import mage.game.Game;
import mage.target.common.TargetCardInLibrary; import mage.target.common.TargetCardInLibrary;
import mage.util.CardUtil;
import java.util.Objects; import java.util.Objects;
import java.util.UUID; import java.util.UUID;
@ -71,6 +72,6 @@ class DeathbellowWarCryTarget extends TargetCardInLibrary {
.map(game::getCard) .map(game::getCard)
.filter(Objects::nonNull) .filter(Objects::nonNull)
.map(Card::getName) .map(Card::getName)
.noneMatch(card.getName()::equals); .noneMatch(n -> CardUtil.haveSameNames(n, card.getName()));
} }
} }