[AFR] Implemented Baleful Beholder

This commit is contained in:
Daniel Bomar 2021-06-29 22:37:02 -05:00
parent 49892c65a1
commit ffe066a272
No known key found for this signature in database
GPG key ID: C86C8658F4023918
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,50 @@
package mage.cards.b;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.SacrificeOpponentsEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.MenaceAbility;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
/**
*
* @author weirddan455
*/
public final class BalefulBeholder extends CardImpl {
public BalefulBeholder(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}{B}");
this.subtype.add(SubType.BEHOLDER);
this.power = new MageInt(6);
this.toughness = new MageInt(5);
// When Baleful Beholder enters the battlefield, choose one
// Antimagic Cone Each opponent sacrifices an enchantment.
Ability ability = new EntersBattlefieldTriggeredAbility(new SacrificeOpponentsEffect(StaticFilters.FILTER_ENCHANTMENT_PERMANENT));
ability.getEffects().setFlavorWord("Antimagic Cone");
// Fear Ray Creatures you control gain menace until end of turn.
ability.addMode(new Mode(new GainAbilityControlledEffect(
new MenaceAbility(), Duration.EndOfTurn, StaticFilters.FILTER_PERMANENT_CREATURES)).setFlavorWord("Fear Ray"));
this.addAbility(ability);
}
private BalefulBeholder(final BalefulBeholder card) {
super(card);
}
@Override
public BalefulBeholder copy() {
return new BalefulBeholder(this);
}
}

View file

@ -26,6 +26,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
this.maxCardNumberInBooster = 275;
cards.add(new SetCardInfo("Adult Gold Dragon", 216, Rarity.RARE, mage.cards.a.AdultGoldDragon.class));
cards.add(new SetCardInfo("Baleful Beholder", 89, Rarity.COMMON, mage.cards.b.BalefulBeholder.class));
cards.add(new SetCardInfo("Bruenor Battlehammer", 219, Rarity.UNCOMMON, mage.cards.b.BruenorBattlehammer.class));
cards.add(new SetCardInfo("Bull's Strength", 174, Rarity.COMMON, mage.cards.b.BullsStrength.class));
cards.add(new SetCardInfo("Cave of the Frost Dragon", 253, Rarity.RARE, mage.cards.c.CaveOfTheFrostDragon.class));