forked from External/mage
[MOM] Implement Onakke Javelineer
This commit is contained in:
parent
bbb13346b6
commit
60798b2f35
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/o/OnakkeJavelineer.java
Normal file
54
Mage.Sets/src/mage/cards/o/OnakkeJavelineer.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.keyword.ReachAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterPermanentOrPlayer;
|
||||
import mage.target.common.TargetPermanentOrPlayer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class OnakkeJavelineer extends CardImpl {
|
||||
|
||||
private static final FilterPermanentOrPlayer filter = new FilterPermanentOrPlayer("player or battle");
|
||||
|
||||
static {
|
||||
filter.getPermanentFilter().add(CardType.BATTLE.getPredicate());
|
||||
}
|
||||
|
||||
public OnakkeJavelineer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}");
|
||||
|
||||
this.subtype.add(SubType.OGRE);
|
||||
this.subtype.add(SubType.SPIRIT);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Reach
|
||||
this.addAbility(ReachAbility.getInstance());
|
||||
|
||||
// {T}: Onakke Javelineer deals 2 damage to target player or battle.
|
||||
Ability ability = new SimpleActivatedAbility(new DamageTargetEffect(2), new TapSourceCost());
|
||||
ability.addTarget(new TargetPermanentOrPlayer(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private OnakkeJavelineer(final OnakkeJavelineer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OnakkeJavelineer copy() {
|
||||
return new OnakkeJavelineer(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -134,6 +134,7 @@ public final class MarchOfTheMachine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Nezumi Informant", 120, Rarity.COMMON, mage.cards.n.NezumiInformant.class));
|
||||
cards.add(new SetCardInfo("Norn's Inquisitor", 29, Rarity.UNCOMMON, mage.cards.n.NornsInquisitor.class));
|
||||
cards.add(new SetCardInfo("Omen Hawker", 70, Rarity.UNCOMMON, mage.cards.o.OmenHawker.class));
|
||||
cards.add(new SetCardInfo("Onakke Javelineer", 156, Rarity.COMMON, mage.cards.o.OnakkeJavelineer.class));
|
||||
cards.add(new SetCardInfo("Oracle of Tragedy", 71, Rarity.UNCOMMON, mage.cards.o.OracleOfTragedy.class));
|
||||
cards.add(new SetCardInfo("Overgrown Pest", 197, Rarity.COMMON, mage.cards.o.OvergrownPest.class));
|
||||
cards.add(new SetCardInfo("Ozolith, the Shattered Spire", 198, Rarity.RARE, mage.cards.o.OzolithTheShatteredSpire.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue