mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 12:49:39 -08:00
Implemented Forbidding Spirit
This commit is contained in:
parent
acf34f9429
commit
88374751b1
3 changed files with 49 additions and 2 deletions
47
Mage.Sets/src/mage/cards/f/ForbiddingSpirit.java
Normal file
47
Mage.Sets/src/mage/cards/f/ForbiddingSpirit.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.f;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.common.combat.CantAttackYouUnlessPayManaAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ForbiddingSpirit extends CardImpl {
|
||||
|
||||
public ForbiddingSpirit(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{W}");
|
||||
|
||||
this.subtype.add(SubType.SPIRIT);
|
||||
this.subtype.add(SubType.CLERIC);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Forbidding Spirit enters the battlefield, until your next turn, creatures can't attack you or a planeswalker you control unless their controller pays {2} for each of those creatures.
|
||||
ContinuousEffect effect = new CantAttackYouUnlessPayManaAllEffect(
|
||||
new ManaCostsImpl("{2}"), true
|
||||
);
|
||||
effect.setDuration(Duration.UntilYourNextTurn);
|
||||
effect.setText("until your next turn, creatures can't attack you or a planeswalker you control " +
|
||||
"unless their controller pays {2} for each of those creatures.");
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(effect));
|
||||
}
|
||||
|
||||
private ForbiddingSpirit(final ForbiddingSpirit card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ForbiddingSpirit copy() {
|
||||
return new ForbiddingSpirit(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -87,6 +87,7 @@ public final class RavnicaAllegiance extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ethereal Absolution", 170, Rarity.RARE, mage.cards.e.EtherealAbsolution.class));
|
||||
cards.add(new SetCardInfo("Fireblade Artist", 172, Rarity.UNCOMMON, mage.cards.f.FirebladeArtist.class));
|
||||
cards.add(new SetCardInfo("Font of Agonies", 74, Rarity.RARE, mage.cards.f.FontOfAgonies.class));
|
||||
cards.add(new SetCardInfo("Forbidding Spirit", 9, Rarity.UNCOMMON, mage.cards.f.ForbiddingSpirit.class));
|
||||
cards.add(new SetCardInfo("Frenzied Arynx", 173, Rarity.COMMON, mage.cards.f.FrenziedArynx.class));
|
||||
cards.add(new SetCardInfo("Frilled Mystic", 174, Rarity.UNCOMMON, mage.cards.f.FrilledMystic.class));
|
||||
cards.add(new SetCardInfo("Gate Colossus", 232, Rarity.UNCOMMON, mage.cards.g.GateColossus.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue