mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
[ONC] Implement Hexplate Wallbreaker
This commit is contained in:
parent
2214ab699c
commit
e98a42d465
2 changed files with 64 additions and 0 deletions
62
Mage.Sets/src/mage/cards/h/HexplateWallbreaker.java
Normal file
62
Mage.Sets/src/mage/cards/h/HexplateWallbreaker.java
Normal file
|
@ -0,0 +1,62 @@
|
|||
package mage.cards.h;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksAttachedTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.common.FirstCombatPhaseCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.AdditionalCombatPhaseEffect;
|
||||
import mage.abilities.effects.common.UntapAllEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.abilities.keyword.ForMirrodinAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author PurpleCrowbar
|
||||
*/
|
||||
public final class HexplateWallbreaker extends CardImpl {
|
||||
|
||||
public HexplateWallbreaker(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}{R}{R}");
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// For Mirrodin!
|
||||
this.addAbility(new ForMirrodinAbility());
|
||||
|
||||
// Equipped creature gets +2/+2.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(2, 2)));
|
||||
|
||||
// Whenever equipped creature attacks, if it's the first combat phase of the turn, untap
|
||||
// each attacking creature. After this phase, there is an additional combat phase.
|
||||
Ability ability = new ConditionalInterveningIfTriggeredAbility(
|
||||
new AttacksAttachedTriggeredAbility(new UntapAllEffect(StaticFilters.FILTER_ATTACKING_CREATURES)),
|
||||
FirstCombatPhaseCondition.instance,
|
||||
"Whenever equipped creature attacks, if it's the first combat phase of the turn, untap " +
|
||||
"each attacking creature. After this phase, there is an additional combat phase"
|
||||
);
|
||||
ability.addEffect(new AdditionalCombatPhaseEffect());
|
||||
this.addAbility(ability);
|
||||
|
||||
// Equip {3}{R}
|
||||
this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl<>("{3}{R}")));
|
||||
}
|
||||
|
||||
private HexplateWallbreaker(final HexplateWallbreaker card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HexplateWallbreaker copy() {
|
||||
return new HexplateWallbreaker(this);
|
||||
}
|
||||
}
|
|
@ -72,6 +72,8 @@ public final class PhyrexiaAllWillBeOneCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Harmonious Archon", 74, Rarity.MYTHIC, mage.cards.h.HarmoniousArchon.class));
|
||||
cards.add(new SetCardInfo("Hate Mirage", 99, Rarity.UNCOMMON, mage.cards.h.HateMirage.class));
|
||||
cards.add(new SetCardInfo("Heroic Reinforcements", 118, Rarity.UNCOMMON, mage.cards.h.HeroicReinforcements.class));
|
||||
cards.add(new SetCardInfo("Hexplate Wallbreaker", 14, Rarity.RARE, mage.cards.h.HexplateWallbreaker.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Hexplate Wallbreaker", 52, Rarity.RARE, mage.cards.h.HexplateWallbreaker.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Hordeling Outburst", 100, Rarity.UNCOMMON, mage.cards.h.HordelingOutburst.class));
|
||||
cards.add(new SetCardInfo("Hour of Reckoning", 75, Rarity.RARE, mage.cards.h.HourOfReckoning.class));
|
||||
cards.add(new SetCardInfo("Ichor Rats", 93, Rarity.UNCOMMON, mage.cards.i.IchorRats.class));
|
||||
|
|
Loading…
Reference in a new issue