mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
[AFR] Implemented Lightfoot Rogue
This commit is contained in:
parent
41cbb7580a
commit
f2f9a96fa2
2 changed files with 78 additions and 0 deletions
77
Mage.Sets/src/mage/cards/l/LightfootRogue.java
Normal file
77
Mage.Sets/src/mage/cards/l/LightfootRogue.java
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksTriggeredAbility;
|
||||
import mage.abilities.effects.common.RollDieWithResultTableEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.DeathtouchAbility;
|
||||
import mage.abilities.keyword.FirstStrikeAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class LightfootRogue extends CardImpl {
|
||||
|
||||
public LightfootRogue(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
|
||||
|
||||
this.subtype.add(SubType.HALFLING);
|
||||
this.subtype.add(SubType.ROGUE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Sneak Attack — Whenever Lightfoot Rogue attacks, roll a d20.
|
||||
RollDieWithResultTableEffect effect = new RollDieWithResultTableEffect();
|
||||
this.addAbility(new AttacksTriggeredAbility(effect, false).withFlavorWord("Sneak Attack"));
|
||||
|
||||
// 1-9 | Lightfoot Rogue gains deathtouch until end of turn.
|
||||
effect.addTableEntry(
|
||||
1, 9,
|
||||
new GainAbilitySourceEffect(
|
||||
DeathtouchAbility.getInstance(), Duration.EndOfTurn
|
||||
)
|
||||
);
|
||||
|
||||
// 10-19 | It gets +1/+0 and gains deathtouch until end of turn.
|
||||
effect.addTableEntry(
|
||||
10, 19,
|
||||
new BoostSourceEffect(
|
||||
1, 0, Duration.EndOfTurn
|
||||
).setText("it gets +1/+0"),
|
||||
new GainAbilitySourceEffect(
|
||||
DeathtouchAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains deathtouch until end of turn")
|
||||
);
|
||||
|
||||
// 20 | It gets +3/+0 and gains first strike and deathtouch until end of turn.
|
||||
effect.addTableEntry(
|
||||
20, 20,
|
||||
new BoostSourceEffect(
|
||||
3, 0, Duration.EndOfTurn
|
||||
).setText("it gets +1/+0"),
|
||||
new GainAbilitySourceEffect(
|
||||
FirstStrikeAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and gains first strike"),
|
||||
new GainAbilitySourceEffect(
|
||||
DeathtouchAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and deathtouch until end of turn")
|
||||
);
|
||||
}
|
||||
|
||||
private LightfootRogue(final LightfootRogue card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LightfootRogue copy() {
|
||||
return new LightfootRogue(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -82,6 +82,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Inspiring Bard", 189, Rarity.COMMON, mage.cards.i.InspiringBard.class));
|
||||
cards.add(new SetCardInfo("Intrepid Outlander", 191, Rarity.UNCOMMON, mage.cards.i.IntrepidOutlander.class));
|
||||
cards.add(new SetCardInfo("Island", 266, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Lightfoot Rogue", 111, Rarity.UNCOMMON, mage.cards.l.LightfootRogue.class));
|
||||
cards.add(new SetCardInfo("Lolth, Spider Queen", 112, Rarity.MYTHIC, mage.cards.l.LolthSpiderQueen.class));
|
||||
cards.add(new SetCardInfo("Manticore", 113, Rarity.COMMON, mage.cards.m.Manticore.class));
|
||||
cards.add(new SetCardInfo("Mimic", 249, Rarity.COMMON, mage.cards.m.Mimic.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue