Implemented Glass of the Guildpact

This commit is contained in:
Evan Kranzler 2019-01-10 15:51:03 -05:00
parent 198883997b
commit 99f9f8efd8
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.g;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.MulticoloredPredicate;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class GlassOfTheGuildpact extends CardImpl {
private static final FilterCreaturePermanent filter
= new FilterCreaturePermanent("multicolored creatures");
static {
filter.add(new MulticoloredPredicate());
}
public GlassOfTheGuildpact(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
// Multicolored creatures you control get +1/+1.
this.addAbility(new SimpleStaticAbility(
new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter)
));
}
private GlassOfTheGuildpact(final GlassOfTheGuildpact card) {
super(card);
}
@Override
public GlassOfTheGuildpact copy() {
return new GlassOfTheGuildpact(this);
}
}

View file

@ -82,6 +82,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
cards.add(new SetCardInfo("Frilled Mystic", 174, Rarity.UNCOMMON, mage.cards.f.FrilledMystic.class));
cards.add(new SetCardInfo("Gate Colossus", 232, Rarity.UNCOMMON, mage.cards.g.GateColossus.class));
cards.add(new SetCardInfo("Gates Ablaze", 102, Rarity.UNCOMMON, mage.cards.g.GatesAblaze.class));
cards.add(new SetCardInfo("Glass of the Guildpact", 233, Rarity.RARE, mage.cards.g.GlassOfTheGuildpact.class));
cards.add(new SetCardInfo("Godless Shrine", 248, Rarity.RARE, mage.cards.g.GodlessShrine.class));
cards.add(new SetCardInfo("Grasping Thrull", 177, Rarity.COMMON, mage.cards.g.GraspingThrull.class));
cards.add(new SetCardInfo("Growth Spiral", 178, Rarity.COMMON, mage.cards.g.GrowthSpiral.class));