Fix for Jazal Goldmane and Ovalchase Daredevil

This commit is contained in:
Styxo 2016-12-07 09:33:12 +01:00
parent ba30a514d2
commit 2b088bde22
2 changed files with 5 additions and 4 deletions

View file

@ -49,7 +49,7 @@ import mage.filter.common.FilterAttackingCreature;
public class JazalGoldmane extends CardImpl { public class JazalGoldmane extends CardImpl {
public JazalGoldmane(UUID ownerId, CardSetInfo setInfo) { public JazalGoldmane(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{W}{W}"); super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}{W}");
this.supertype.add("Legendary"); this.supertype.add("Legendary");
this.subtype.add("Cat"); this.subtype.add("Cat");
this.subtype.add("Warrior"); this.subtype.add("Warrior");
@ -63,7 +63,7 @@ public class JazalGoldmane extends CardImpl {
DynamicValue xValue = new AttackingCreatureCount("the number of attacking creatures"); DynamicValue xValue = new AttackingCreatureCount("the number of attacking creatures");
this.addAbility(new SimpleActivatedAbility( this.addAbility(new SimpleActivatedAbility(
Zone.BATTLEFIELD, Zone.BATTLEFIELD,
new BoostControlledEffect(xValue, xValue , Duration.EndOfTurn, new FilterAttackingCreature("Attacking creatures"), false), new BoostControlledEffect(xValue, xValue, Duration.EndOfTurn, new FilterAttackingCreature("Attacking creatures"), false, true),
new ManaCostsImpl("{3}{W}{W}"))); new ManaCostsImpl("{3}{W}{W}")));
} }

View file

@ -34,6 +34,7 @@ import mage.abilities.effects.common.ReturnToHandSourceEffect;
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.constants.SetTargetPointer;
import mage.constants.TargetController; import mage.constants.TargetController;
import mage.constants.Zone; import mage.constants.Zone;
import mage.filter.FilterPermanent; import mage.filter.FilterPermanent;
@ -53,14 +54,14 @@ public class OvalchaseDaredevil extends CardImpl {
} }
public OvalchaseDaredevil(UUID ownerId, CardSetInfo setInfo) { public OvalchaseDaredevil(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{B}"); super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}");
this.subtype.add("Human"); this.subtype.add("Human");
this.subtype.add("Pilot"); this.subtype.add("Pilot");
this.power = new MageInt(4); this.power = new MageInt(4);
this.toughness = new MageInt(2); this.toughness = new MageInt(2);
// Whenever an artifact enters the battlefield under your control, you may return Ovalchase Daredevil from your graveyard to your hand. // Whenever an artifact enters the battlefield under your control, you may return Ovalchase Daredevil from your graveyard to your hand.
this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.GRAVEYARD, new ReturnToHandSourceEffect(), filter, true)); this.addAbility(new EntersBattlefieldAllTriggeredAbility(Zone.GRAVEYARD, new ReturnToHandSourceEffect(), filter, true, SetTargetPointer.NONE, null, true));
} }
public OvalchaseDaredevil(final OvalchaseDaredevil card) { public OvalchaseDaredevil(final OvalchaseDaredevil card) {