[BRO] Implemented Brotherhood's End

This commit is contained in:
Daniel Bomar 2022-11-01 15:02:40 -05:00
parent 79408978b7
commit 72f25dd681
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,52 @@
package mage.cards.b;
import java.util.UUID;
import mage.abilities.Mode;
import mage.abilities.effects.common.DamageAllEffect;
import mage.abilities.effects.common.DestroyAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterArtifactPermanent;
import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent;
import mage.filter.predicate.mageobject.ManaValuePredicate;
/**
*
* @author weirddan455
*/
public final class BrotherhoodsEnd extends CardImpl {
private static final FilterPermanent filter
= new FilterCreatureOrPlaneswalkerPermanent("creature and each planeswalker");
private static final FilterPermanent filter2
= new FilterArtifactPermanent("artifacts with mana value 3 or less");
static {
filter2.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 4));
}
public BrotherhoodsEnd(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}{R}");
// Choose one --
// * Brotherhood's End deals 3 damage to each creature and each planeswalker.
this.getSpellAbility().addEffect(new DamageAllEffect(3, filter));
// * Destroy all artifacts with mana value 3 or less.
this.getSpellAbility().addMode(new Mode(new DestroyAllEffect(filter2)));
}
private BrotherhoodsEnd(final BrotherhoodsEnd card) {
super(card);
}
@Override
public BrotherhoodsEnd copy() {
return new BrotherhoodsEnd(this);
}
}

View file

@ -34,6 +34,7 @@ public final class TheBrothersWar extends ExpansionSet {
cards.add(new SetCardInfo("Bitter Reunion", 127, Rarity.COMMON, mage.cards.b.BitterReunion.class)); cards.add(new SetCardInfo("Bitter Reunion", 127, Rarity.COMMON, mage.cards.b.BitterReunion.class));
cards.add(new SetCardInfo("Blanchwood Armor", 171, Rarity.UNCOMMON, mage.cards.b.BlanchwoodArmor.class)); cards.add(new SetCardInfo("Blanchwood Armor", 171, Rarity.UNCOMMON, mage.cards.b.BlanchwoodArmor.class));
cards.add(new SetCardInfo("Blast Zone", 258, Rarity.RARE, mage.cards.b.BlastZone.class)); cards.add(new SetCardInfo("Blast Zone", 258, Rarity.RARE, mage.cards.b.BlastZone.class));
cards.add(new SetCardInfo("Brotherhood's End", 128, Rarity.RARE, mage.cards.b.BrotherhoodsEnd.class));
cards.add(new SetCardInfo("Brushland", 259, Rarity.RARE, mage.cards.b.Brushland.class)); cards.add(new SetCardInfo("Brushland", 259, Rarity.RARE, mage.cards.b.Brushland.class));
cards.add(new SetCardInfo("Clay Revenant", 118, Rarity.COMMON, mage.cards.c.ClayRevenant.class)); cards.add(new SetCardInfo("Clay Revenant", 118, Rarity.COMMON, mage.cards.c.ClayRevenant.class));
cards.add(new SetCardInfo("Combat Thresher", 35, Rarity.UNCOMMON, mage.cards.c.CombatThresher.class)); cards.add(new SetCardInfo("Combat Thresher", 35, Rarity.UNCOMMON, mage.cards.c.CombatThresher.class));