Implemented Oakhame Ranger

This commit is contained in:
Evan Kranzler 2019-09-10 17:31:27 -04:00
parent 10daaa3906
commit e1136743e0
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.cards.o;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.cards.AdventureCard;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.game.permanent.token.HumanToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class OakhameRanger extends AdventureCard {
public OakhameRanger(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.SORCERY}, "{G/W}{G/W}{G/W}{G/W}", "Bring Back", "{G/W}{G/W}{G/W}{G/W}");
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.KNIGHT);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// {T}: Creatures you control get +1/+1 until end of turn.
this.addAbility(new SimpleActivatedAbility(
new BoostControlledEffect(1, 1, Duration.EndOfTurn), new TapSourceCost()
));
// Bring Back
// Create two 1/1 white Human creature tokens.
this.getAdventureSpellAbility().addEffect(new CreateTokenEffect(new HumanToken(), 2));
}
private OakhameRanger(final OakhameRanger card) {
super(card);
}
@Override
public OakhameRanger copy() {
return new OakhameRanger(this);
}
}

View file

@ -77,6 +77,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
cards.add(new SetCardInfo("Maraleaf Pixie", 196, Rarity.UNCOMMON, mage.cards.m.MaraleafPixie.class));
cards.add(new SetCardInfo("Midnight Clock", 54, Rarity.RARE, mage.cards.m.MidnightClock.class));
cards.add(new SetCardInfo("Mystical Dispute", 58, Rarity.UNCOMMON, mage.cards.m.MysticalDispute.class));
cards.add(new SetCardInfo("Oakhame Ranger", 212, Rarity.UNCOMMON, mage.cards.o.OakhameRanger.class));
cards.add(new SetCardInfo("Oko's Accomplices", 310, Rarity.COMMON, mage.cards.o.OkosAccomplices.class));
cards.add(new SetCardInfo("Oko's Hospitality", 312, Rarity.RARE, mage.cards.o.OkosHospitality.class));
cards.add(new SetCardInfo("Oko, Thief of Crowns", 197, Rarity.MYTHIC, mage.cards.o.OkoThiefOfCrowns.class));