[AFR] Implemented Farideh's Fireball

This commit is contained in:
Evan Kranzler 2021-07-06 22:59:40 -04:00
parent 7240684a81
commit 82cc789534
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.f;
import mage.abilities.effects.common.DamagePlayersEffect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.RollDieWithResultTableEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.target.common.TargetCreatureOrPlaneswalker;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class FaridehsFireball extends CardImpl {
public FaridehsFireball(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{R}{R}");
// Farideh's Fireball deals 5 damage to target creature or planeswalker. Roll a d20.
this.getSpellAbility().addEffect(new DamageTargetEffect(5));
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
RollDieWithResultTableEffect effect = new RollDieWithResultTableEffect();
this.getSpellAbility().addEffect(effect.concatBy("."));
// 1-9 | Farideh's Fireball deals 2 damage to each player.
effect.addTableEntry(1, 9, new DamagePlayersEffect(2));
// 10-20 | Farideh's Fireball deals 2 damage to each opponent.
effect.addTableEntry(10, 20, new DamagePlayersEffect(2, TargetController.OPPONENT));
}
private FaridehsFireball(final FaridehsFireball card) {
super(card);
}
@Override
public FaridehsFireball copy() {
return new FaridehsFireball(this);
}
}

View file

@ -83,6 +83,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
cards.add(new SetCardInfo("Evolving Wilds", 256, Rarity.COMMON, mage.cards.e.EvolvingWilds.class));
cards.add(new SetCardInfo("Eye of Vecna", 243, Rarity.RARE, mage.cards.e.EyeOfVecna.class));
cards.add(new SetCardInfo("Eyes of the Beholder", 101, Rarity.COMMON, mage.cards.e.EyesOfTheBeholder.class));
cards.add(new SetCardInfo("Farideh's Fireball", 142, Rarity.COMMON, mage.cards.f.FaridehsFireball.class));
cards.add(new SetCardInfo("Fates' Reversal", 102, Rarity.COMMON, mage.cards.f.FatesReversal.class));
cards.add(new SetCardInfo("Feign Death", 103, Rarity.COMMON, mage.cards.f.FeignDeath.class));
cards.add(new SetCardInfo("Fifty Feet of Rope", 244, Rarity.UNCOMMON, mage.cards.f.FiftyFeetOfRope.class));