mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
- Fixed #6946
This commit is contained in:
parent
f0149c6a19
commit
36468044f4
2 changed files with 8 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterSpell;
|
import mage.filter.FilterSpell;
|
||||||
|
import mage.filter.FilterStackObject;
|
||||||
import mage.filter.predicate.Predicates;
|
import mage.filter.predicate.Predicates;
|
||||||
import mage.filter.predicate.mageobject.ColorlessPredicate;
|
import mage.filter.predicate.mageobject.ColorlessPredicate;
|
||||||
|
|
||||||
|
|
@ -25,7 +26,7 @@ import mage.filter.predicate.mageobject.ColorlessPredicate;
|
||||||
*/
|
*/
|
||||||
public final class EmrakulTheAeonsTorn extends CardImpl {
|
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 {
|
static {
|
||||||
filter.add(Predicates.not(ColorlessPredicate.instance));
|
filter.add(Predicates.not(ColorlessPredicate.instance));
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,12 @@ public class ProtectionAbility extends StaticAbility {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Emrakul, the Aeons Torn
|
||||||
|
if (filter instanceof FilterStackObject) {
|
||||||
|
if (source instanceof Spell) {
|
||||||
|
return !filter.match(source, game);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (filter instanceof FilterObject) {
|
if (filter instanceof FilterObject) {
|
||||||
return !filter.match(source, game);
|
return !filter.match(source, game);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue