mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
[MH2] Implemented Dragon's Rage Channeler
This commit is contained in:
parent
dd0a19679c
commit
55a3b03c5e
4 changed files with 72 additions and 2 deletions
69
Mage.Sets/src/mage/cards/d/DragonsRageChanneler.java
Normal file
69
Mage.Sets/src/mage/cards/d/DragonsRageChanneler.java
Normal file
|
@ -0,0 +1,69 @@
|
||||||
|
package mage.cards.d;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
|
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||||
|
import mage.abilities.condition.common.DeliriumCondition;
|
||||||
|
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||||
|
import mage.abilities.decorator.ConditionalRequirementEffect;
|
||||||
|
import mage.abilities.effects.common.combat.AttacksIfAbleSourceEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||||
|
import mage.abilities.effects.keyword.SurveilEffect;
|
||||||
|
import mage.abilities.hint.common.CardTypesInGraveyardHint;
|
||||||
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.AbilityWord;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Duration;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class DragonsRageChanneler extends CardImpl {
|
||||||
|
|
||||||
|
public DragonsRageChanneler(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}");
|
||||||
|
|
||||||
|
this.subtype.add(SubType.HUMAN);
|
||||||
|
this.subtype.add(SubType.SHAMAN);
|
||||||
|
this.power = new MageInt(1);
|
||||||
|
this.toughness = new MageInt(1);
|
||||||
|
|
||||||
|
// Whenever you cast a noncreature spell, surveil 1.
|
||||||
|
this.addAbility(new SpellCastControllerTriggeredAbility(
|
||||||
|
new SurveilEffect(1), StaticFilters.FILTER_SPELL_A_NON_CREATURE, false
|
||||||
|
));
|
||||||
|
|
||||||
|
// Delirium — As long as there are four or more card types among cards in your graveyard, Dragon's Rage Channeler gets +2/+2, has flying, and attacks each combat if able.
|
||||||
|
Ability ability = new SimpleStaticAbility(new ConditionalContinuousEffect(
|
||||||
|
new BoostSourceEffect(2, 2, Duration.WhileOnBattlefield),
|
||||||
|
DeliriumCondition.instance, "as long as there are four or more " +
|
||||||
|
"card types among cards in your graveyard, {this} gets +2/+2"
|
||||||
|
));
|
||||||
|
ability.addEffect(new ConditionalContinuousEffect(new GainAbilitySourceEffect(
|
||||||
|
FlyingAbility.getInstance(), Duration.WhileOnBattlefield
|
||||||
|
), DeliriumCondition.instance, ", has flying"));
|
||||||
|
ability.addEffect(new ConditionalRequirementEffect(
|
||||||
|
new AttacksIfAbleSourceEffect(Duration.WhileOnBattlefield),
|
||||||
|
DeliriumCondition.instance, ", and attacks each combat if able"
|
||||||
|
));
|
||||||
|
ability.setAbilityWord(AbilityWord.DELIRIUM);
|
||||||
|
this.addAbility(ability.addHint(CardTypesInGraveyardHint.YOU));
|
||||||
|
}
|
||||||
|
|
||||||
|
private DragonsRageChanneler(final DragonsRageChanneler card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public DragonsRageChanneler copy() {
|
||||||
|
return new DragonsRageChanneler(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -49,7 +49,7 @@ public final class Kookus extends CardImpl {
|
||||||
|
|
||||||
// At the beginning of your upkeep, if you don't control a creature named Keeper of Kookus, Kookus deals 3 damage to you and attacks this turn if able.
|
// At the beginning of your upkeep, if you don't control a creature named Keeper of Kookus, Kookus deals 3 damage to you and attacks this turn if able.
|
||||||
TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(new DamageControllerEffect(3), TargetController.YOU, false);
|
TriggeredAbility ability = new BeginningOfUpkeepTriggeredAbility(new DamageControllerEffect(3), TargetController.YOU, false);
|
||||||
ability.addEffect(new AttacksIfAbleSourceEffect(Duration.EndOfTurn));
|
ability.addEffect(new AttacksIfAbleSourceEffect(Duration.EndOfTurn, false));
|
||||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||||
ability,
|
ability,
|
||||||
new InvertCondition(new PermanentsOnTheBattlefieldCondition(filter)),
|
new InvertCondition(new PermanentsOnTheBattlefieldCondition(filter)),
|
||||||
|
|
|
@ -44,6 +44,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Dakkon, Shadow Slayer", 192, Rarity.MYTHIC, mage.cards.d.DakkonShadowSlayer.class));
|
cards.add(new SetCardInfo("Dakkon, Shadow Slayer", 192, Rarity.MYTHIC, mage.cards.d.DakkonShadowSlayer.class));
|
||||||
cards.add(new SetCardInfo("Darkmoss Bridge", 245, Rarity.COMMON, mage.cards.d.DarkmossBridge.class));
|
cards.add(new SetCardInfo("Darkmoss Bridge", 245, Rarity.COMMON, mage.cards.d.DarkmossBridge.class));
|
||||||
cards.add(new SetCardInfo("Diamond Lion", 225, Rarity.RARE, mage.cards.d.DiamondLion.class));
|
cards.add(new SetCardInfo("Diamond Lion", 225, Rarity.RARE, mage.cards.d.DiamondLion.class));
|
||||||
|
cards.add(new SetCardInfo("Dragon's Rage Channeler", 232, Rarity.UNCOMMON, mage.cards.d.DragonsRageChanneler.class));
|
||||||
cards.add(new SetCardInfo("Drey Keeper", 194, Rarity.COMMON, mage.cards.d.DreyKeeper.class));
|
cards.add(new SetCardInfo("Drey Keeper", 194, Rarity.COMMON, mage.cards.d.DreyKeeper.class));
|
||||||
cards.add(new SetCardInfo("Drossforge Bridge", 246, Rarity.COMMON, mage.cards.d.DrossforgeBridge.class));
|
cards.add(new SetCardInfo("Drossforge Bridge", 246, Rarity.COMMON, mage.cards.d.DrossforgeBridge.class));
|
||||||
cards.add(new SetCardInfo("Extruder", 296, Rarity.UNCOMMON, mage.cards.e.Extruder.class));
|
cards.add(new SetCardInfo("Extruder", 296, Rarity.UNCOMMON, mage.cards.e.Extruder.class));
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class AttacksIfAbleSourceEffect extends RequirementEffect {
|
||||||
boolean eachCombat;
|
boolean eachCombat;
|
||||||
|
|
||||||
public AttacksIfAbleSourceEffect(Duration duration) {
|
public AttacksIfAbleSourceEffect(Duration duration) {
|
||||||
this(duration, false);
|
this(duration, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AttacksIfAbleSourceEffect(Duration duration, boolean eachCombat) {
|
public AttacksIfAbleSourceEffect(Duration duration, boolean eachCombat) {
|
||||||
|
|
Loading…
Reference in a new issue