1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-08 01:01:04 -09:00

[KHM] fixed Roots of Wisdom being able to target any card

This commit is contained in:
Evan Kranzler 2021-04-04 20:15:29 -04:00
parent 247933abde
commit a9790d78db

View file

@ -45,10 +45,10 @@ class RootsOfWisdomEffect extends OneShotEffect {
private static final FilterCard filter = new FilterCard("land card or Elf card");
static {
Predicates.or(
filter.add(Predicates.or(
CardType.LAND.getPredicate(),
SubType.ELF.getPredicate()
);
));
}
RootsOfWisdomEffect() {
@ -74,6 +74,7 @@ class RootsOfWisdomEffect extends OneShotEffect {
}
player.millCards(3, source, game);
TargetCard targetCard = new TargetCardInYourGraveyard(filter);
targetCard.setNotTarget(true);
if (targetCard.canChoose(source.getSourceId(), source.getControllerId(), game)
&& player.choose(outcome, targetCard, source.getSourceId(), game)) {
Card card = player.getGraveyard().get(targetCard.getFirstTarget(), game);