diff --git a/Mage.Sets/src/mage/cards/i/IllustriousWanderglyph.java b/Mage.Sets/src/mage/cards/i/IllustriousWanderglyph.java new file mode 100644 index 00000000000..ddc19029a91 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IllustriousWanderglyph.java @@ -0,0 +1,60 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.condition.common.CitysBlessingCondition; +import mage.abilities.decorator.ConditionalContinuousEffect; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.abilities.keyword.AscendAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.constants.TargetController; +import mage.filter.StaticFilters; +import mage.game.permanent.token.GnomeToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class IllustriousWanderglyph extends CardImpl { + + public IllustriousWanderglyph(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{4}{W}"); + + this.subtype.add(SubType.GOLEM); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Ascend + this.addAbility(new AscendAbility()); + + // Other artifact creatures you control get +2/+2 as long as you have the city's blessing. + this.addAbility(new SimpleStaticAbility(new ConditionalContinuousEffect( + new BoostControlledEffect( + 2, 2, Duration.WhileOnBattlefield, + StaticFilters.FILTER_PERMANENT_ARTIFACT_CREATURE, true + ), CitysBlessingCondition.instance, "other artifact creatures you control " + + "get +2/+2 as long as you have the city's blessing" + ))); + + // At the beginning of each upkeep, create a 1/1 colorless Gnome artifact creature token. + this.addAbility(new BeginningOfUpkeepTriggeredAbility( + new CreateTokenEffect(new GnomeToken()), TargetController.EACH_PLAYER, false + )); + } + + private IllustriousWanderglyph(final IllustriousWanderglyph card) { + super(card); + } + + @Override + public IllustriousWanderglyph copy() { + return new IllustriousWanderglyph(this); + } +} diff --git a/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java b/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java index 05d0a27b167..76bfa16d2cd 100644 --- a/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java +++ b/Mage.Sets/src/mage/sets/LostCavernsOfIxalanCommander.java @@ -135,6 +135,7 @@ public final class LostCavernsOfIxalanCommander extends ExpansionSet { cards.add(new SetCardInfo("Hinterland Harbor", 336, Rarity.RARE, mage.cards.h.HinterlandHarbor.class)); cards.add(new SetCardInfo("Hostage Taker", 271, Rarity.RARE, mage.cards.h.HostageTaker.class)); cards.add(new SetCardInfo("Icon of Ancestry", 305, Rarity.RARE, mage.cards.i.IconOfAncestry.class)); + cards.add(new SetCardInfo("Illustrious Wanderglyph", 9, Rarity.RARE, mage.cards.i.IllustriousWanderglyph.class)); cards.add(new SetCardInfo("Indulgent Aristocrat", 200, Rarity.UNCOMMON, mage.cards.i.IndulgentAristocrat.class)); cards.add(new SetCardInfo("Inspiring Call", 244, Rarity.UNCOMMON, mage.cards.i.InspiringCall.class)); cards.add(new SetCardInfo("Isolated Chapel", 337, Rarity.RARE, mage.cards.i.IsolatedChapel.class));