mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
Update constructors
This commit is contained in:
parent
3a6e84043c
commit
9aaf1ccef7
4 changed files with 11 additions and 15 deletions
|
@ -33,7 +33,7 @@ public final class BogardanDragonheart extends CardImpl {
|
|||
// Sacrifice another creature: Until end of turn, Bogardan Dragonheart becomes a Dragon with base power and toughness 4/4, flying, and haste.
|
||||
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
|
||||
new BogardanDragonheartToken(), null, Duration.EndOfTurn, false,
|
||||
false, null, null, false
|
||||
false, false
|
||||
), new SacrificeTargetCost(new TargetControlledPermanent(StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE))));
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class ChromiumTheMutable extends CardImpl {
|
|||
Ability ability = new SimpleActivatedAbility(
|
||||
new BecomesCreatureSourceEffect(
|
||||
new ChromiumTheMutableToken(), null, Duration.EndOfTurn,
|
||||
false, false, null, null, true
|
||||
false, false, true
|
||||
).setText("Until end of turn, {this} becomes "
|
||||
+ "a Human with base power and toughness 1/1, "
|
||||
+ "loses all abilities, and gains hexproof"),
|
||||
|
|
|
@ -21,13 +21,11 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.*;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterControlledLandPermanent;
|
||||
import mage.filter.common.FilterLandCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.custom.CreatureToken;
|
||||
import mage.players.Player;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
|
||||
/**
|
||||
|
@ -65,7 +63,7 @@ public final class MonumentToPerfection extends CardImpl {
|
|||
.withAbility(IndestructibleAbility.getInstance())
|
||||
.withAbility(new ToxicAbility(9)),
|
||||
null, Duration.Custom, true,
|
||||
false, null, null, true
|
||||
false, true
|
||||
), new GenericManaCost(3), MonumentToPerfectionCondition.instance
|
||||
).addHint(MonumentToPerfectionValue.getHint()));
|
||||
}
|
||||
|
@ -136,4 +134,4 @@ enum MonumentToPerfectionCondition implements Condition {
|
|||
public String toString() {
|
||||
return "there are nine or more lands with different names among the basic, Sphere, and Locus lands you control";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,25 +23,23 @@ public class BecomesCreatureSourceEffect extends ContinuousEffectImpl implements
|
|||
protected boolean durationRuleAtStart = false; // put duration rule at the start of the rules text rather than the end
|
||||
|
||||
public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration) {
|
||||
this(token, theyAreStillType, duration, false, false);
|
||||
this(token, theyAreStillType, duration, false, false, false);
|
||||
}
|
||||
|
||||
public BecomesCreatureSourceEffect(Token token, Duration duration) {
|
||||
this(token, "", duration, true, false, false);
|
||||
}
|
||||
|
||||
public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining) {
|
||||
this(token, theyAreStillType, duration, losePreviousTypes, characterDefining, null, null);
|
||||
this(token, theyAreStillType, duration, losePreviousTypes, characterDefining, false);
|
||||
}
|
||||
|
||||
public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining, DynamicValue power, DynamicValue toughness) {
|
||||
this(token, theyAreStillType, duration, losePreviousTypes, characterDefining, power, toughness, false);
|
||||
}
|
||||
|
||||
public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining, DynamicValue power, DynamicValue toughness, boolean loseAbilities) {
|
||||
public BecomesCreatureSourceEffect(Token token, String theyAreStillType, Duration duration, boolean losePreviousTypes, boolean characterDefining, boolean loseAbilities) {
|
||||
super(duration, Outcome.BecomeCreature);
|
||||
this.characterDefining = characterDefining;
|
||||
this.token = token;
|
||||
this.theyAreStillType = theyAreStillType;
|
||||
this.losePreviousTypes = losePreviousTypes;
|
||||
this.power = power;
|
||||
this.toughness = toughness;
|
||||
this.loseAbilities = loseAbilities;
|
||||
setText();
|
||||
|
||||
|
|
Loading…
Reference in a new issue