mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Spirit Mirror - Fixed that the first ability only checked for Reflection tokens (related to #3391).
This commit is contained in:
parent
c26968a096
commit
ff22e28676
1 changed files with 4 additions and 2 deletions
|
@ -43,7 +43,6 @@ import mage.constants.ComparisonType;
|
||||||
import mage.constants.TargetController;
|
import mage.constants.TargetController;
|
||||||
import mage.constants.Zone;
|
import mage.constants.Zone;
|
||||||
import mage.filter.FilterPermanent;
|
import mage.filter.FilterPermanent;
|
||||||
import mage.filter.predicate.mageobject.NamePredicate;
|
|
||||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||||
import mage.filter.predicate.permanent.TokenPredicate;
|
import mage.filter.predicate.permanent.TokenPredicate;
|
||||||
import mage.game.permanent.token.ReflectionToken;
|
import mage.game.permanent.token.ReflectionToken;
|
||||||
|
@ -54,9 +53,12 @@ import mage.target.TargetPermanent;
|
||||||
*/
|
*/
|
||||||
public class SpiritMirror extends CardImpl {
|
public class SpiritMirror extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterPermanent filterToken = new FilterPermanent("Reflection", "Reflection token");
|
||||||
private static final FilterPermanent filter = new FilterPermanent("Reflection");
|
private static final FilterPermanent filter = new FilterPermanent("Reflection");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
filterToken.add(new SubtypePredicate("Reflection"));
|
||||||
|
filterToken.add(new TokenPredicate());
|
||||||
filter.add(new SubtypePredicate("Reflection"));
|
filter.add(new SubtypePredicate("Reflection"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +68,7 @@ public class SpiritMirror extends CardImpl {
|
||||||
// At the beginning of your upkeep, if there are no Reflection tokens on the battlefield, create a 2/2 white Reflection creature token.
|
// At the beginning of your upkeep, if there are no Reflection tokens on the battlefield, create a 2/2 white Reflection creature token.
|
||||||
this.addAbility(new ConditionalTriggeredAbility(
|
this.addAbility(new ConditionalTriggeredAbility(
|
||||||
new BeginningOfUpkeepTriggeredAbility(new CreateTokenEffect(new ReflectionToken()), TargetController.YOU, false),
|
new BeginningOfUpkeepTriggeredAbility(new CreateTokenEffect(new ReflectionToken()), TargetController.YOU, false),
|
||||||
new PermanentsOnTheBattlefieldCondition(filter, ComparisonType.EQUAL_TO, 0, false),
|
new PermanentsOnTheBattlefieldCondition(filterToken, ComparisonType.EQUAL_TO, 0, false),
|
||||||
"At the beginning of your upkeep, if there are no Reflection tokens on the battlefield, create a 2/2 white Reflection creature token"));
|
"At the beginning of your upkeep, if there are no Reflection tokens on the battlefield, create a 2/2 white Reflection creature token"));
|
||||||
|
|
||||||
// {0}: Destroy target Reflection.
|
// {0}: Destroy target Reflection.
|
||||||
|
|
Loading…
Reference in a new issue