mirror of
https://github.com/correl/mage.git
synced 2025-03-16 17:00:13 -09:00
[MIC] fixed Eloise, Nephalia Sleuth triggering off of opposing creatures (fixes #8307)
This commit is contained in:
parent
7a869ff791
commit
2653b806cb
1 changed files with 8 additions and 6 deletions
|
@ -11,6 +11,8 @@ import mage.constants.CardType;
|
||||||
import mage.constants.SubType;
|
import mage.constants.SubType;
|
||||||
import mage.constants.SuperType;
|
import mage.constants.SuperType;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||||
|
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||||
import mage.filter.predicate.permanent.TokenPredicate;
|
import mage.filter.predicate.permanent.TokenPredicate;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
@ -20,10 +22,12 @@ import java.util.UUID;
|
||||||
*/
|
*/
|
||||||
public final class EloiseNephaliaSleuth extends CardImpl {
|
public final class EloiseNephaliaSleuth extends CardImpl {
|
||||||
|
|
||||||
private static final FilterPermanent filter = new FilterPermanent("a token");
|
private static final FilterPermanent filter = new FilterControlledCreaturePermanent("another creature you control");
|
||||||
|
private static final FilterPermanent filter2 = new FilterPermanent("a token");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(TokenPredicate.TRUE);
|
filter.add(AnotherPredicate.instance);
|
||||||
|
filter2.add(TokenPredicate.TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public EloiseNephaliaSleuth(UUID ownerId, CardSetInfo setInfo) {
|
public EloiseNephaliaSleuth(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
@ -36,12 +40,10 @@ public final class EloiseNephaliaSleuth extends CardImpl {
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
// Whenever another creature you control dies, investigate.
|
// Whenever another creature you control dies, investigate.
|
||||||
this.addAbility(new DiesCreatureTriggeredAbility(
|
this.addAbility(new DiesCreatureTriggeredAbility(new InvestigateEffect(1), false, filter));
|
||||||
new InvestigateEffect(1), false, true
|
|
||||||
));
|
|
||||||
|
|
||||||
// Whenever you sacrifice a token, surveil 1.
|
// Whenever you sacrifice a token, surveil 1.
|
||||||
this.addAbility(new SacrificePermanentTriggeredAbility(new SurveilEffect(1), filter));
|
this.addAbility(new SacrificePermanentTriggeredAbility(new SurveilEffect(1), filter2));
|
||||||
}
|
}
|
||||||
|
|
||||||
private EloiseNephaliaSleuth(final EloiseNephaliaSleuth card) {
|
private EloiseNephaliaSleuth(final EloiseNephaliaSleuth card) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue