mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
fix for Alandra Sky Dreamer using lockIn for the boost (#10245)
This commit is contained in:
parent
5f31c061cf
commit
8b7558b78e
1 changed files with 82 additions and 80 deletions
|
@ -1,80 +1,82 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DrawNthCardTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.game.permanent.token.DrakeToken;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.dynamicvalue.common.CardsInControllerHandCount;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
|
||||
/**
|
||||
* @author amoscatelli
|
||||
*/
|
||||
public final class AlandraSkyDreamer extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.DRAKE, "Drakes");
|
||||
|
||||
public AlandraSkyDreamer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{U}");
|
||||
addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.MERFOLK);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Whenever you draw your second card earch turn, create a 2/2 blue Drake creature token with flying.
|
||||
this.addAbility(
|
||||
new DrawNthCardTriggeredAbility(
|
||||
new CreateTokenEffect(
|
||||
new DrakeToken()
|
||||
),
|
||||
false,
|
||||
2
|
||||
)
|
||||
);
|
||||
|
||||
// Whenever you draw your fifth card each turn, Alandra, Sky Dreamer and Drakes you control each get +X/+X until end of turn, where X is the number of cards in your hand.
|
||||
DrawNthCardTriggeredAbility drawNthCardTriggeredAbility = new DrawNthCardTriggeredAbility(
|
||||
new BoostSourceEffect(
|
||||
CardsInControllerHandCount.instance,
|
||||
CardsInControllerHandCount.instance,
|
||||
Duration.EndOfTurn
|
||||
).setText("{this}"),
|
||||
false,
|
||||
5
|
||||
);
|
||||
drawNthCardTriggeredAbility.addEffect(
|
||||
new BoostControlledEffect(
|
||||
CardsInControllerHandCount.instance,
|
||||
CardsInControllerHandCount.instance,
|
||||
Duration.EndOfTurn,
|
||||
filter,
|
||||
false
|
||||
).setText("and Drakes you control each get +X/+X until end of turn, where X is the number of cards in your hand")
|
||||
);
|
||||
this.addAbility(
|
||||
drawNthCardTriggeredAbility
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
private AlandraSkyDreamer(final AlandraSkyDreamer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AlandraSkyDreamer copy() {
|
||||
return new AlandraSkyDreamer(this);
|
||||
}
|
||||
}
|
||||
package mage.cards.a;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DrawNthCardTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.game.permanent.token.DrakeToken;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.dynamicvalue.common.CardsInControllerHandCount;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
|
||||
/**
|
||||
* @author amoscatelli
|
||||
*/
|
||||
public final class AlandraSkyDreamer extends CardImpl {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.DRAKE, "Drakes");
|
||||
|
||||
public AlandraSkyDreamer(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{U}{U}");
|
||||
addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.MERFOLK);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Whenever you draw your second card earch turn, create a 2/2 blue Drake creature token with flying.
|
||||
this.addAbility(
|
||||
new DrawNthCardTriggeredAbility(
|
||||
new CreateTokenEffect(
|
||||
new DrakeToken()
|
||||
),
|
||||
false,
|
||||
2
|
||||
)
|
||||
);
|
||||
|
||||
// Whenever you draw your fifth card each turn, Alandra, Sky Dreamer and Drakes you control each get +X/+X until end of turn, where X is the number of cards in your hand.
|
||||
DrawNthCardTriggeredAbility drawNthCardTriggeredAbility = new DrawNthCardTriggeredAbility(
|
||||
new BoostSourceEffect(
|
||||
CardsInControllerHandCount.instance,
|
||||
CardsInControllerHandCount.instance,
|
||||
Duration.EndOfTurn,
|
||||
true
|
||||
).setText("{this}"),
|
||||
false,
|
||||
5
|
||||
);
|
||||
drawNthCardTriggeredAbility.addEffect(
|
||||
new BoostControlledEffect(
|
||||
CardsInControllerHandCount.instance,
|
||||
CardsInControllerHandCount.instance,
|
||||
Duration.EndOfTurn,
|
||||
filter,
|
||||
false,
|
||||
true
|
||||
).setText("and Drakes you control each get +X/+X until end of turn, where X is the number of cards in your hand")
|
||||
);
|
||||
this.addAbility(
|
||||
drawNthCardTriggeredAbility
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
private AlandraSkyDreamer(final AlandraSkyDreamer card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AlandraSkyDreamer copy() {
|
||||
return new AlandraSkyDreamer(this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue