mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[CMR] Implemented Court of Ire
This commit is contained in:
parent
11e9617554
commit
1f6ccea60a
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/c/CourtOfIre.java
Normal file
47
Mage.Sets/src/mage/cards/c/CourtOfIre.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.condition.common.MonarchIsSourceControllerCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.BecomesMonarchSourceEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CourtOfIre extends CardImpl {
|
||||
|
||||
public CourtOfIre(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{R}{R}");
|
||||
|
||||
// When Court of Ire enters the battlefield, you become the monarch.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new BecomesMonarchSourceEffect()));
|
||||
|
||||
// At the beginning of your upkeep, Court of Ire deals 2 damage to any target. If you're the monarch, it deals 7 damage to that player or permanent instead.
|
||||
Ability ability = new BeginningOfUpkeepTriggeredAbility(new ConditionalOneShotEffect(
|
||||
new DamageTargetEffect(7), new DamageTargetEffect(2),
|
||||
MonarchIsSourceControllerCondition.instance, "{this} deals 2 damage to any target. " +
|
||||
"If you're the monarch, it deals 7 damage to that player or permanent instead"
|
||||
), TargetController.YOU, false);
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private CourtOfIre(final CourtOfIre card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CourtOfIre copy() {
|
||||
return new CourtOfIre(this);
|
||||
}
|
||||
}
|
|
@ -101,6 +101,7 @@ public final class CommanderLegends extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Court of Bounty", 220, Rarity.RARE, mage.cards.c.CourtOfBounty.class));
|
||||
cards.add(new SetCardInfo("Court of Cunning", 63, Rarity.RARE, mage.cards.c.CourtOfCunning.class));
|
||||
cards.add(new SetCardInfo("Court of Grace", 16, Rarity.RARE, mage.cards.c.CourtOfGrace.class));
|
||||
cards.add(new SetCardInfo("Court of Ire", 170, Rarity.RARE, mage.cards.c.CourtOfIre.class));
|
||||
cards.add(new SetCardInfo("Crimson Fleet Commodore", 171, Rarity.COMMON, mage.cards.c.CrimsonFleetCommodore.class));
|
||||
cards.add(new SetCardInfo("Crow of Dark Tidings", 115, Rarity.COMMON, mage.cards.c.CrowOfDarkTidings.class));
|
||||
cards.add(new SetCardInfo("Crushing Vines", 221, Rarity.COMMON, mage.cards.c.CrushingVines.class));
|
||||
|
|
Loading…
Reference in a new issue