mirror of
https://github.com/correl/mage.git
synced 2024-12-01 11:09:56 +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();
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue