mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[MKM] Implement Get a Leg Up (#11702)
This commit is contained in:
parent
ed196bcfbf
commit
d2d041e26e
2 changed files with 43 additions and 0 deletions
42
Mage.Sets/src/mage/cards/g/GetALegUp.java
Normal file
42
Mage.Sets/src/mage/cards/g/GetALegUp.java
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
import mage.abilities.hint.common.CreaturesYouControlHint;
|
||||
import mage.abilities.keyword.ReachAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author Cguy7777
|
||||
*/
|
||||
public final class GetALegUp extends CardImpl {
|
||||
|
||||
public GetALegUp(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{G}");
|
||||
|
||||
// Until end of turn, target creature gets +1/+1 for each creature you control and gains reach.
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addEffect(new BoostTargetEffect(CreaturesYouControlCount.instance, CreaturesYouControlCount.instance, Duration.EndOfTurn)
|
||||
.setText("until end of turn, target creature gets +1/+1 for each creature you control"));
|
||||
|
||||
this.getSpellAbility().addEffect(new GainAbilityTargetEffect(ReachAbility.getInstance(), Duration.EndOfTurn)
|
||||
.setText("and gains reach"));
|
||||
this.getSpellAbility().addHint(CreaturesYouControlHint.instance);
|
||||
}
|
||||
|
||||
private GetALegUp(final GetALegUp card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetALegUp copy() {
|
||||
return new GetALegUp(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -61,6 +61,7 @@ public final class MurdersAtKarlovManor extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gadget Technician", 204, Rarity.COMMON, mage.cards.g.GadgetTechnician.class));
|
||||
cards.add(new SetCardInfo("Galvanize", 128, Rarity.COMMON, mage.cards.g.Galvanize.class));
|
||||
cards.add(new SetCardInfo("Gearbane Orangutan", 129, Rarity.COMMON, mage.cards.g.GearbaneOrangutan.class));
|
||||
cards.add(new SetCardInfo("Get a Leg Up", 161, Rarity.UNCOMMON, mage.cards.g.GetALegUp.class));
|
||||
cards.add(new SetCardInfo("Gleaming Geardrake", 205, Rarity.UNCOMMON, mage.cards.g.GleamingGeardrake.class));
|
||||
cards.add(new SetCardInfo("Granite Witness", 206, Rarity.COMMON, mage.cards.g.GraniteWitness.class));
|
||||
cards.add(new SetCardInfo("Griffnaut Tracker", 17, Rarity.COMMON, mage.cards.g.GriffnautTracker.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue