forked from External/mage
[AFR] fixed Volo, Guide to Monsters comparing names instead of creature types
This commit is contained in:
parent
34a0e9546a
commit
d2540eab91
1 changed files with 2 additions and 3 deletions
|
|
@ -15,7 +15,6 @@ import mage.filter.predicate.Predicate;
|
|||
import mage.game.Game;
|
||||
import mage.game.stack.StackObject;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
|
|
@ -71,13 +70,13 @@ enum VoloGuideToMonstersPredicate implements Predicate<StackObject> {
|
|||
.getGraveyard()
|
||||
.getCards(StaticFilters.FILTER_CARD_CREATURE, game)
|
||||
.stream()
|
||||
.anyMatch(card -> CardUtil.haveSameNames(card, input))) {
|
||||
.anyMatch(card -> input.shareCreatureTypes(game, card))) {
|
||||
return false;
|
||||
}
|
||||
return game
|
||||
.getBattlefield()
|
||||
.getActivePermanents(StaticFilters.FILTER_CONTROLLED_CREATURE, input.getControllerId(), game)
|
||||
.stream()
|
||||
.noneMatch(permanent -> CardUtil.haveSameNames(permanent, input));
|
||||
.noneMatch(permanent -> input.shareCreatureTypes(game, permanent));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue