diff --git a/Mage.Sets/src/mage/cards/b/BrotherhoodRegalia.java b/Mage.Sets/src/mage/cards/b/BrotherhoodRegalia.java new file mode 100644 index 00000000000..59b49b5e15c --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BrotherhoodRegalia.java @@ -0,0 +1,61 @@ +package mage.cards.b; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.effects.common.combat.CantBeBlockedAttachedEffect; +import mage.abilities.effects.common.continuous.AddCardSubtypeAttachedEffect; +import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; +import mage.abilities.keyword.EquipAbility; +import mage.abilities.keyword.WardAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author PurpleCrowbar + */ +public final class BrotherhoodRegalia extends CardImpl { + + private static final FilterControlledCreaturePermanent filter + = new FilterControlledCreaturePermanent("legendary creature"); + static { + filter.add(SuperType.LEGENDARY.getPredicate()); + } + + public BrotherhoodRegalia(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature has ward {2}, is an Assassin in addition to its other types, and can't be blocked. + Ability ability = new SimpleStaticAbility(new GainAbilityAttachedEffect( + new WardAbility(new GenericManaCost(2), false), AttachmentType.EQUIPMENT + ).setText("Equipped creature has ward {2}")); + ability.addEffect(new AddCardSubtypeAttachedEffect(SubType.ASSASSIN, AttachmentType.EQUIPMENT) + .setText(", is an Assassin in addition to its other types") + ); + ability.addEffect(new CantBeBlockedAttachedEffect(AttachmentType.EQUIPMENT) + .setText(", and can't be blocked") + ); + this.addAbility(ability); + + // Equip legendary creature {1} + this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(1), new TargetControlledCreaturePermanent(filter), false)); + + // Equip {3} + this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(3), true)); + } + + private BrotherhoodRegalia(final BrotherhoodRegalia card) { + super(card); + } + + @Override + public BrotherhoodRegalia copy() { + return new BrotherhoodRegalia(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AssassinsCreed.java b/Mage.Sets/src/mage/sets/AssassinsCreed.java index 494bcca53a9..80c12faa560 100644 --- a/Mage.Sets/src/mage/sets/AssassinsCreed.java +++ b/Mage.Sets/src/mage/sets/AssassinsCreed.java @@ -35,6 +35,8 @@ public final class AssassinsCreed extends ExpansionSet { cards.add(new SetCardInfo("Black Market Connections", 87, Rarity.RARE, mage.cards.b.BlackMarketConnections.class)); cards.add(new SetCardInfo("Brotherhood Ambushers", 285, Rarity.UNCOMMON, mage.cards.b.BrotherhoodAmbushers.class)); cards.add(new SetCardInfo("Brotherhood Patriarch", 286, Rarity.COMMON, mage.cards.b.BrotherhoodPatriarch.class)); + cards.add(new SetCardInfo("Brotherhood Regalia", 71, Rarity.UNCOMMON, mage.cards.b.BrotherhoodRegalia.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Brotherhood Regalia", 255, Rarity.UNCOMMON, mage.cards.b.BrotherhoodRegalia.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Brotherhood Spy", 282, Rarity.UNCOMMON, mage.cards.b.BrotherhoodSpy.class)); cards.add(new SetCardInfo("Bureau Headmaster", 296, Rarity.UNCOMMON, mage.cards.b.BureauHeadmaster.class)); cards.add(new SetCardInfo("Cathartic Reunion", 94, Rarity.UNCOMMON, mage.cards.c.CatharticReunion.class));