mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[BRO] Implemented Brotherhood's End
This commit is contained in:
parent
79408978b7
commit
72f25dd681
2 changed files with 53 additions and 0 deletions
52
Mage.Sets/src/mage/cards/b/BrotherhoodsEnd.java
Normal file
52
Mage.Sets/src/mage/cards/b/BrotherhoodsEnd.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue