[LCC] Implement Illustrious Wanderglyph

This commit is contained in:
theelk801 2023-11-05 16:35:23 -05:00
parent 49b4c1ccd8
commit 567f99ba70
2 changed files with 61 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));