mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Implemented Deafening Clarion
This commit is contained in:
parent
782ce359e5
commit
5e13502ae0
2 changed files with 51 additions and 0 deletions
50
Mage.Sets/src/mage/cards/d/DeafeningClarion.java
Normal file
50
Mage.Sets/src/mage/cards/d/DeafeningClarion.java
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
package mage.cards.d;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
import mage.abilities.Mode;
|
||||||
|
import mage.abilities.effects.common.DamageAllEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||||
|
import mage.abilities.keyword.LifelinkAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class DeafeningClarion extends CardImpl {
|
||||||
|
|
||||||
|
public DeafeningClarion(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}{W}");
|
||||||
|
|
||||||
|
// Choose one or both —
|
||||||
|
this.getSpellAbility().getModes().setMinModes(1);
|
||||||
|
this.getSpellAbility().getModes().setMaxModes(2);
|
||||||
|
|
||||||
|
// • Deafening Clarion deals 3 damage to each creature.
|
||||||
|
this.getSpellAbility().addEffect(new DamageAllEffect(
|
||||||
|
3, StaticFilters.FILTER_PERMANENT_CREATURE
|
||||||
|
));
|
||||||
|
|
||||||
|
// • Creatures you control gain lifelink until end of turn.
|
||||||
|
Mode mode = new Mode();
|
||||||
|
mode.getEffects().add(new GainAbilityControlledEffect(
|
||||||
|
LifelinkAbility.getInstance(),
|
||||||
|
Duration.EndOfTurn,
|
||||||
|
StaticFilters.FILTER_PERMANENT_CREATURES
|
||||||
|
));
|
||||||
|
this.getSpellAbility().addMode(mode);
|
||||||
|
}
|
||||||
|
|
||||||
|
public DeafeningClarion(final DeafeningClarion card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DeafeningClarion copy() {
|
||||||
|
return new DeafeningClarion(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -32,6 +32,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Chromatic Lantern", 233, Rarity.RARE, mage.cards.c.ChromaticLantern.class));
|
cards.add(new SetCardInfo("Chromatic Lantern", 233, Rarity.RARE, mage.cards.c.ChromaticLantern.class));
|
||||||
cards.add(new SetCardInfo("Conclave Tribunal", 6, Rarity.UNCOMMON, mage.cards.c.ConclaveTribunal.class));
|
cards.add(new SetCardInfo("Conclave Tribunal", 6, Rarity.UNCOMMON, mage.cards.c.ConclaveTribunal.class));
|
||||||
cards.add(new SetCardInfo("Deadly Visit", 68, Rarity.COMMON, mage.cards.d.DeadlyVisit.class));
|
cards.add(new SetCardInfo("Deadly Visit", 68, Rarity.COMMON, mage.cards.d.DeadlyVisit.class));
|
||||||
|
cards.add(new SetCardInfo("Deafening Clarion", 165, Rarity.RARE, mage.cards.d.DeafeningClarion.class));
|
||||||
cards.add(new SetCardInfo("Dimir Informant", 36, Rarity.COMMON, mage.cards.d.DimirInformant.class));
|
cards.add(new SetCardInfo("Dimir Informant", 36, Rarity.COMMON, mage.cards.d.DimirInformant.class));
|
||||||
cards.add(new SetCardInfo("Direct Current", 96, Rarity.COMMON, mage.cards.d.DirectCurrent.class));
|
cards.add(new SetCardInfo("Direct Current", 96, Rarity.COMMON, mage.cards.d.DirectCurrent.class));
|
||||||
cards.add(new SetCardInfo("Dream Eater", 38, Rarity.MYTHIC, mage.cards.d.DreamEater.class));
|
cards.add(new SetCardInfo("Dream Eater", 38, Rarity.MYTHIC, mage.cards.d.DreamEater.class));
|
||||||
|
|
Loading…
Reference in a new issue