mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
[AKH] Another fixes
This commit is contained in:
parent
fc794f74aa
commit
c8e7c7fb15
4 changed files with 21 additions and 32 deletions
|
@ -59,14 +59,19 @@ public class ManticoreOfTheGauntlet extends CardImpl {
|
||||||
this.toughness = new MageInt(4);
|
this.toughness = new MageInt(4);
|
||||||
|
|
||||||
// When Manticore of the Gauntlet enters the battlefield, put a -1/-1 counter on target creature you control. Manticore of the Gauntlet deals 3 damage to target opponent.
|
// When Manticore of the Gauntlet enters the battlefield, put a -1/-1 counter on target creature you control. Manticore of the Gauntlet deals 3 damage to target opponent.
|
||||||
Effect counters = new AddCountersTargetEffect(CounterType.M1M1.createInstance(), new StaticValue(1));
|
Effect counters = new AddCountersTargetEffect(CounterType.M1M1.createInstance());
|
||||||
counters.setTargetPointer(new FirstTargetPointer());
|
counters.setTargetPointer(new FirstTargetPointer());
|
||||||
Ability ability = new EntersBattlefieldTriggeredAbility(counters);
|
|
||||||
Effect damage = new DamageTargetEffect(new StaticValue(3), true, "", true);
|
Effect damage = new DamageTargetEffect(new StaticValue(3), true, "", true);
|
||||||
damage.setTargetPointer(new SecondTargetPointer());
|
damage.setTargetPointer(new SecondTargetPointer());
|
||||||
|
|
||||||
|
Ability ability = new EntersBattlefieldTriggeredAbility(counters);
|
||||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||||
|
|
||||||
|
ability.addEffect(damage);
|
||||||
ability.addTarget(new TargetOpponent());
|
ability.addTarget(new TargetOpponent());
|
||||||
addAbility(ability);
|
|
||||||
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ManticoreOfTheGauntlet(final ManticoreOfTheGauntlet card) {
|
public ManticoreOfTheGauntlet(final ManticoreOfTheGauntlet card) {
|
||||||
|
|
|
@ -48,7 +48,9 @@ import mage.target.common.TargetCreaturePermanent;
|
||||||
* @author stravant
|
* @author stravant
|
||||||
*/
|
*/
|
||||||
public class PathmakerInitiate extends CardImpl {
|
public class PathmakerInitiate extends CardImpl {
|
||||||
|
|
||||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with power 2 or less");
|
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent("creature with power 2 or less");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 3));
|
filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 3));
|
||||||
}
|
}
|
||||||
|
@ -64,6 +66,7 @@ public class PathmakerInitiate extends CardImpl {
|
||||||
// {T}: Target creature with power 2 or less can't be blocked this turn.
|
// {T}: Target creature with power 2 or less can't be blocked this turn.
|
||||||
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(Duration.EndOfTurn), new TapSourceCost());
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new CantBeBlockedTargetEffect(Duration.EndOfTurn), new TapSourceCost());
|
||||||
ability.addTarget(new TargetCreaturePermanent(filter));
|
ability.addTarget(new TargetCreaturePermanent(filter));
|
||||||
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PathmakerInitiate(final PathmakerInitiate card) {
|
public PathmakerInitiate(final PathmakerInitiate card) {
|
||||||
|
|
|
@ -35,22 +35,19 @@ import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Duration;
|
import mage.constants.Duration;
|
||||||
import mage.filter.StaticFilters;
|
|
||||||
import mage.filter.common.FilterAttackingCreature;
|
import mage.filter.common.FilterAttackingCreature;
|
||||||
import mage.filter.common.FilterCreaturePermanent;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author stravant
|
* @author stravant
|
||||||
*/
|
*/
|
||||||
public class PursueGlory extends CardImpl {
|
public class PursueGlory extends CardImpl {
|
||||||
private static final FilterAttackingCreature filter = new FilterAttackingCreature("Attacking creatures");
|
|
||||||
|
|
||||||
public PursueGlory(UUID ownerId, CardSetInfo setInfo) {
|
public PursueGlory(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{R}");
|
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{R}");
|
||||||
|
|
||||||
// Attacking creatures get +2/+0 until end of turn.
|
// Attacking creatures get +2/+0 until end of turn.
|
||||||
getSpellAbility().addEffect(new BoostAllEffect(2, 0, Duration.EndOfTurn, filter, false));
|
getSpellAbility().addEffect(new BoostAllEffect(2, 0, Duration.EndOfTurn, new FilterAttackingCreature("Attacking creatures"), false));
|
||||||
|
|
||||||
// Cycling {2}
|
// Cycling {2}
|
||||||
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
|
||||||
|
|
|
@ -29,17 +29,13 @@ package mage.cards.s;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
import mage.MageObject;
|
|
||||||
import mage.abilities.Ability;
|
|
||||||
import mage.abilities.effects.Effect;
|
|
||||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||||
import mage.abilities.keyword.CyclingAbility;
|
import mage.abilities.keyword.CyclingAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.filter.FilterCard;
|
import mage.filter.FilterCard;
|
||||||
import mage.filter.predicate.Predicate;
|
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||||
import mage.game.Game;
|
|
||||||
import mage.target.common.TargetCardInYourGraveyard;
|
import mage.target.common.TargetCardInYourGraveyard;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -47,18 +43,18 @@ import mage.target.common.TargetCardInYourGraveyard;
|
||||||
* @author stravant
|
* @author stravant
|
||||||
*/
|
*/
|
||||||
public class SacredExcavation extends CardImpl {
|
public class SacredExcavation extends CardImpl {
|
||||||
private static final FilterCard cardsWithCycling = new FilterCard();
|
|
||||||
|
private static final FilterCard cardsWithCycling = new FilterCard("cards with cycling from your graveyard");
|
||||||
|
|
||||||
static {
|
static {
|
||||||
cardsWithCycling.add(new CyclingPredicate());
|
cardsWithCycling.add(new AbilityPredicate(CyclingAbility.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
public SacredExcavation(UUID ownerId, CardSetInfo setInfo) {
|
public SacredExcavation(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}");
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{U}");
|
||||||
|
|
||||||
// Return up to two target cards with cycling from your graveyard to your hand.
|
// Return up to two target cards with cycling from your graveyard to your hand.
|
||||||
Effect effect = new ReturnFromGraveyardToHandTargetEffect();
|
getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
||||||
effect.setText("Return up to two target cards with cycling from your graveyard to your hand");
|
|
||||||
getSpellAbility().addEffect(effect);
|
|
||||||
getSpellAbility().addTarget(new TargetCardInYourGraveyard(0, 2, cardsWithCycling));
|
getSpellAbility().addTarget(new TargetCardInYourGraveyard(0, 2, cardsWithCycling));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,15 +67,3 @@ public class SacredExcavation extends CardImpl {
|
||||||
return new SacredExcavation(this);
|
return new SacredExcavation(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class CyclingPredicate implements Predicate<MageObject> {
|
|
||||||
@Override
|
|
||||||
public boolean apply(MageObject input, Game game) {
|
|
||||||
for (Ability ability : input.getAbilities()) {
|
|
||||||
if (ability instanceof CyclingAbility) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue