forked from External/mage
implement [MH3] Ondu Knotmaster // Throw A Line
This commit is contained in:
parent
4490c86a8a
commit
4232e5b168
2 changed files with 73 additions and 0 deletions
72
Mage.Sets/src/mage/cards/o/OnduKnotmaster.java
Normal file
72
Mage.Sets/src/mage/cards/o/OnduKnotmaster.java
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
package mage.cards.o;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesCreatureTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.effects.common.counter.DistributeCountersEffect;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.cards.AdventureCard;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.AnotherPredicate;
|
||||
import mage.filter.predicate.permanent.ModifiedPredicate;
|
||||
import mage.target.common.TargetCreaturePermanentAmount;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class OnduKnotmaster extends AdventureCard {
|
||||
|
||||
private static final FilterPermanent filter =
|
||||
new FilterControlledCreaturePermanent("another modified creature you control");
|
||||
|
||||
static {
|
||||
filter.add(AnotherPredicate.instance);
|
||||
filter.add(ModifiedPredicate.instance);
|
||||
}
|
||||
|
||||
public OnduKnotmaster(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.SORCERY}, "{2}{W}{B}", "Throw a Line", "{W}{B}");
|
||||
|
||||
this.subtype.add(SubType.KOR);
|
||||
this.subtype.add(SubType.ROGUE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Lifelink
|
||||
this.addAbility(LifelinkAbility.getInstance());
|
||||
|
||||
// Whenever another modified creature you control dies, put two +1/+1 counters on Ondu Knotmaster.
|
||||
this.addAbility(new DiesCreatureTriggeredAbility(
|
||||
new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)),
|
||||
false, filter
|
||||
));
|
||||
|
||||
// Throw a Line
|
||||
// Distribute two +1/+1 counters among one or two target creatures.
|
||||
this.getSpellCard().getSpellAbility().addEffect(
|
||||
new DistributeCountersEffect(
|
||||
CounterType.P1P1, 2, false,
|
||||
"one or two target creatures"
|
||||
)
|
||||
);
|
||||
this.getSpellCard().getSpellAbility().addTarget(new TargetCreaturePermanentAmount(2));
|
||||
|
||||
this.finalizeAdventure();
|
||||
}
|
||||
|
||||
private OnduKnotmaster(final OnduKnotmaster card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OnduKnotmaster copy() {
|
||||
return new OnduKnotmaster(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -184,6 +184,7 @@ public final class ModernHorizons3 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Nyxborn Unicorn", 37, Rarity.COMMON, mage.cards.n.NyxbornUnicorn.class));
|
||||
cards.add(new SetCardInfo("Obstinate Gargoyle", 195, Rarity.COMMON, mage.cards.o.ObstinateGargoyle.class));
|
||||
cards.add(new SetCardInfo("Ocelot Pride", 38, Rarity.MYTHIC, mage.cards.o.OcelotPride.class));
|
||||
cards.add(new SetCardInfo("Ondu Knotmaster", 196, Rarity.UNCOMMON, mage.cards.o.OnduKnotmaster.class));
|
||||
cards.add(new SetCardInfo("Ophiomancer", 276, Rarity.RARE, mage.cards.o.Ophiomancer.class));
|
||||
cards.add(new SetCardInfo("Orim's Chant", 265, Rarity.RARE, mage.cards.o.OrimsChant.class));
|
||||
cards.add(new SetCardInfo("Path of Annihilation", 165, Rarity.UNCOMMON, mage.cards.p.PathOfAnnihilation.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue