mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Fixed UGL test, rename new token
This commit is contained in:
parent
9b740b8cbb
commit
4771ad2c63
3 changed files with 9 additions and 7 deletions
|
|
@ -42,7 +42,7 @@ import mage.filter.FilterPermanent;
|
||||||
import mage.filter.common.FilterCreatureSpell;
|
import mage.filter.common.FilterCreatureSpell;
|
||||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.permanent.token.PureReflectionToken;
|
import mage.game.permanent.token.ReflectionPureToken;
|
||||||
import mage.game.stack.Spell;
|
import mage.game.stack.Spell;
|
||||||
import mage.players.Player;
|
import mage.players.Player;
|
||||||
|
|
||||||
|
|
@ -96,13 +96,13 @@ public class PureReflection extends CardImpl {
|
||||||
FilterPermanent filter = new FilterPermanent("Reflections");
|
FilterPermanent filter = new FilterPermanent("Reflections");
|
||||||
filter.add(new SubtypePredicate(SubType.REFLECTION));
|
filter.add(new SubtypePredicate(SubType.REFLECTION));
|
||||||
game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game).forEach((permanent) -> {
|
game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source.getSourceId(), game).forEach((permanent) -> {
|
||||||
permanent.destroy(source.getSourceId(), game, /**noRegen=*/false);
|
permanent.destroy(source.getSourceId(), game,false);
|
||||||
});
|
});
|
||||||
game.applyEffects();
|
game.applyEffects();
|
||||||
|
|
||||||
// Then that player creates an X/X white Reflection creature token, where X is the converted mana cost of that spell.
|
// Then that player creates an X/X white Reflection creature token, where X is the converted mana cost of that spell.
|
||||||
PureReflectionToken token = new PureReflectionToken(spell.getConvertedManaCost());
|
ReflectionPureToken token = new ReflectionPureToken(spell.getConvertedManaCost());
|
||||||
token.putOntoBattlefield(/**amount=*/1, game, source.getSourceId(), spell.getControllerId());
|
token.putOntoBattlefield(1, game, source.getSourceId(), spell.getControllerId());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,8 @@ public class VerifyCardDataTest {
|
||||||
skipListAddName("SUBTYPE", "Paper Tiger"); // UGL, mtgjson error
|
skipListAddName("SUBTYPE", "Paper Tiger"); // UGL, mtgjson error
|
||||||
skipListAddName("SUBTYPE", "Rock Lobster"); // UGL, mtgjson error
|
skipListAddName("SUBTYPE", "Rock Lobster"); // UGL, mtgjson error
|
||||||
skipListAddName("SUBTYPE", "Scissors Lizard"); // UGL, mtgjson error
|
skipListAddName("SUBTYPE", "Scissors Lizard"); // UGL, mtgjson error
|
||||||
|
skipListAddName("SUBTYPE", "Urza's Science Fair Project"); // UGL, mtgjson error
|
||||||
|
|
||||||
|
|
||||||
// number
|
// number
|
||||||
skipListCreate("NUMBER");
|
skipListCreate("NUMBER");
|
||||||
|
|
|
||||||
|
|
@ -35,13 +35,13 @@ import mage.MageInt;
|
||||||
*
|
*
|
||||||
* @author SpikesCafe-google
|
* @author SpikesCafe-google
|
||||||
*/
|
*/
|
||||||
public class PureReflectionToken extends Token {
|
public class ReflectionPureToken extends Token {
|
||||||
|
|
||||||
public PureReflectionToken() {
|
public ReflectionPureToken() {
|
||||||
this(1);
|
this(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PureReflectionToken(int xValue) {
|
public ReflectionPureToken(int xValue) {
|
||||||
super("Reflection", "X/X white Reflection creature token, where X is the converted mana cost of that spell");
|
super("Reflection", "X/X white Reflection creature token, where X is the converted mana cost of that spell");
|
||||||
this.setOriginalExpansionSetCode("INV");
|
this.setOriginalExpansionSetCode("INV");
|
||||||
cardType.add(CardType.CREATURE);
|
cardType.add(CardType.CREATURE);
|
||||||
Loading…
Add table
Add a link
Reference in a new issue