mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Fixed name compare
This commit is contained in:
parent
5d29467f8f
commit
17cf3cd129
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue