mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00: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.predicate.mageobject.SubtypePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.PureReflectionToken;
|
||||
import mage.game.permanent.token.ReflectionPureToken;
|
||||
import mage.game.stack.Spell;
|
||||
import mage.players.Player;
|
||||
|
||||
|
@ -96,13 +96,13 @@ public class PureReflection extends CardImpl {
|
|||
FilterPermanent filter = new FilterPermanent("Reflections");
|
||||
filter.add(new SubtypePredicate(SubType.REFLECTION));
|
||||
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();
|
||||
|
||||
// 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());
|
||||
token.putOntoBattlefield(/**amount=*/1, game, source.getSourceId(), spell.getControllerId());
|
||||
ReflectionPureToken token = new ReflectionPureToken(spell.getConvertedManaCost());
|
||||
token.putOntoBattlefield(1, game, source.getSourceId(), spell.getControllerId());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -64,6 +64,8 @@ public class VerifyCardDataTest {
|
|||
skipListAddName("SUBTYPE", "Paper Tiger"); // UGL, mtgjson error
|
||||
skipListAddName("SUBTYPE", "Rock Lobster"); // UGL, mtgjson error
|
||||
skipListAddName("SUBTYPE", "Scissors Lizard"); // UGL, mtgjson error
|
||||
skipListAddName("SUBTYPE", "Urza's Science Fair Project"); // UGL, mtgjson error
|
||||
|
||||
|
||||
// number
|
||||
skipListCreate("NUMBER");
|
||||
|
|
|
@ -35,13 +35,13 @@ import mage.MageInt;
|
|||
*
|
||||
* @author SpikesCafe-google
|
||||
*/
|
||||
public class PureReflectionToken extends Token {
|
||||
public class ReflectionPureToken extends Token {
|
||||
|
||||
public PureReflectionToken() {
|
||||
public ReflectionPureToken() {
|
||||
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");
|
||||
this.setOriginalExpansionSetCode("INV");
|
||||
cardType.add(CardType.CREATURE);
|
Loading…
Reference in a new issue