mirror of
https://github.com/correl/mage.git
synced 2025-04-08 17:00:07 -09:00
Implemented Tenth District Legionnaire
This commit is contained in:
parent
dc3b2f424a
commit
36f5fd365e
3 changed files with 61 additions and 3 deletions
Mage.Sets/src/mage
Mage/src/main/java/mage/abilities/keyword
49
Mage.Sets/src/mage/cards/t/TenthDistrictLegionnaire.java
Normal file
49
Mage.Sets/src/mage/cards/t/TenthDistrictLegionnaire.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.HeroicAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TenthDistrictLegionnaire extends CardImpl {
|
||||
|
||||
public TenthDistrictLegionnaire(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}{W}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.SOLDIER);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// Whenever you cast a spell that targets Tenth District Legionnaire, put a +1/+1 counter on Tenth District Legionnaire, then scry 1.
|
||||
Ability ability = new HeroicAbility(new AddCountersSourceEffect(
|
||||
CounterType.P1P1.createInstance()
|
||||
), false, false);
|
||||
ability.addEffect(new ScryEffect(1));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private TenthDistrictLegionnaire(final TenthDistrictLegionnaire card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TenthDistrictLegionnaire copy() {
|
||||
return new TenthDistrictLegionnaire(this);
|
||||
}
|
||||
}
|
|
@ -124,6 +124,7 @@ public final class WarOfTheSpark extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Swamp", 256, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Swamp", 258, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Teferi, Time Raveler", 221, Rarity.RARE, mage.cards.t.TeferiTimeRaveler.class));
|
||||
cards.add(new SetCardInfo("Tenth District Legionnaire", 222, Rarity.UNCOMMON, mage.cards.t.TenthDistrictLegionnaire.class));
|
||||
cards.add(new SetCardInfo("Teyo's Lightshield", 33, Rarity.COMMON, mage.cards.t.TeyosLightshield.class));
|
||||
cards.add(new SetCardInfo("Teyo, the Shieldmage", 32, Rarity.UNCOMMON, mage.cards.t.TeyoTheShieldmage.class));
|
||||
cards.add(new SetCardInfo("Tezzeret, Master of the Bridge", 275, Rarity.MYTHIC, mage.cards.t.TezzeretMasterOfTheBridge.class));
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
package mage.abilities.keyword;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.SpellAbility;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
|
@ -12,24 +11,33 @@ import mage.game.events.GameEvent;
|
|||
import mage.game.stack.Spell;
|
||||
import mage.target.Target;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Heroic
|
||||
*
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class HeroicAbility extends TriggeredAbilityImpl {
|
||||
|
||||
private final boolean isHeroic;
|
||||
|
||||
public HeroicAbility(Effect effect) {
|
||||
this(effect, false);
|
||||
}
|
||||
|
||||
public HeroicAbility(Effect effect, boolean optional) {
|
||||
this(effect, optional, true);
|
||||
}
|
||||
|
||||
public HeroicAbility(Effect effect, boolean optional, boolean isHeroic) {
|
||||
super(Zone.BATTLEFIELD, effect, optional);
|
||||
this.isHeroic = isHeroic;
|
||||
}
|
||||
|
||||
public HeroicAbility(final HeroicAbility ability) {
|
||||
super(ability);
|
||||
this.isHeroic = ability.isHeroic;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -77,6 +85,6 @@ public class HeroicAbility extends TriggeredAbilityImpl {
|
|||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return new StringBuilder("<i>Heroic</i> — Whenever you cast a spell that targets {this}, ").append(super.getRule()).toString();
|
||||
return (isHeroic ? "<i>Heroic</i> — " : "") + "Whenever you cast a spell that targets {this}, " + super.getRule();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue