Skip to content

Commit

Permalink
- Fixed #6946
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwadsworth authored and jeffwadsworth committed Aug 12, 2020
1 parent f0149c6 commit 3646804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mage.Sets/src/mage/cards/e/EmrakulTheAeonsTorn.java
Expand Up @@ -17,6 +17,7 @@
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.FilterSpell;
import mage.filter.FilterStackObject;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.ColorlessPredicate;

Expand All @@ -25,7 +26,7 @@
*/
public final class EmrakulTheAeonsTorn extends CardImpl {

private static final FilterSpell filter = new FilterSpell("colored spells");
private static final FilterStackObject filter = new FilterStackObject("colored spells");

static {
filter.add(Predicates.not(ColorlessPredicate.instance));
Expand Down
Expand Up @@ -97,6 +97,12 @@ public boolean canTarget(MageObject source, Game game) {
return true;
}
}
// Emrakul, the Aeons Torn
if (filter instanceof FilterStackObject) {
if (source instanceof Spell) {
return !filter.match(source, game);
}
}

if (filter instanceof FilterObject) {
return !filter.match(source, game);
Expand Down

0 comments on commit 3646804

Please sign in to comment.