mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
refactor: SimpleStaticAbility default zone (second line)
This commit is contained in:
parent
ca6d0302b7
commit
139ca1ebe1
14 changed files with 16 additions and 16 deletions
|
|
@ -38,7 +38,7 @@ public final class AetherTunnel extends CardImpl {
|
|||
|
||||
// Enchanted creature gets +1/+0 and can't be blocked.
|
||||
ability = new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 0, Duration.WhileOnBattlefield)
|
||||
new BoostEnchantedEffect(1, 0, Duration.WhileOnBattlefield)
|
||||
);
|
||||
ability.addEffect(
|
||||
new CantBeBlockedAttachedEffect(AttachmentType.AURA)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class CavalryMaster extends CardImpl {
|
|||
this.addAbility(new FlankingAbility());
|
||||
// Other creatures you control with flanking have flanking.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new GainAbilityAllEffect(new FlankingAbility(), Duration.WhileOnBattlefield, filter, true)
|
||||
new GainAbilityAllEffect(new FlankingAbility(), Duration.WhileOnBattlefield, filter, true)
|
||||
.setText("Other creatures you control with flanking have flanking.")
|
||||
));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class DivineVisitation extends CardImpl {
|
|||
// that many 4/4 white Angel creature tokens with flying and
|
||||
// vigilance are created instead.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new DivineVisitationEffect()
|
||||
new DivineVisitationEffect()
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public final class EnergyFlux extends CardImpl {
|
|||
|
||||
// All artifacts have "At the beginning of your upkeep, sacrifice this artifact unless you pay {2}."
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
|
||||
new GainAbilityAllEffect(
|
||||
new BeginningOfUpkeepTriggeredAbility(
|
||||
TargetController.YOU, new SacrificeSourceUnlessPaysEffect(new GenericManaCost(2)),
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class EnhancedSurveillance extends CardImpl {
|
|||
|
||||
// You may look at an additional two cards each time you surveil.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new EnhancedSurveillanceReplacementEffect()
|
||||
new EnhancedSurveillanceReplacementEffect()
|
||||
));
|
||||
|
||||
// Exile Enhanced Surveillance: Shuffle your graveyard into your library.
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class MarshalsAnthem extends CardImpl {
|
|||
|
||||
// Creatures you control get +1/+1.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield)
|
||||
new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield)
|
||||
));
|
||||
|
||||
// When Marshal's Anthem enters the battlefield, return up to X target creature cards from your graveyard to the battlefield, where X is the number of times Marshal's Anthem was kicked.
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public final class MessengersSpeed extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
// Enchanted creature has trample and haste.
|
||||
ability = new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield));
|
||||
new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield));
|
||||
Effect effect = new GainAbilityAttachedEffect(HasteAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield);
|
||||
effect.setText("and haste");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class NikyaOfTheOldWays extends CardImpl {
|
|||
|
||||
// You can't cast noncreature spells.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new NikyaOfTheOldWaysCantCastEffect()
|
||||
new NikyaOfTheOldWaysCantCastEffect()
|
||||
));
|
||||
|
||||
// Whenever you tap a land for mana, add one mana of any type that land produced.
|
||||
|
|
@ -85,4 +85,4 @@ class NikyaOfTheOldWaysCantCastEffect extends ContinuousRuleModifyingEffectImpl
|
|||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public final class NullhideFerox extends CardImpl {
|
|||
|
||||
// You can't cast noncreature spells.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new NullhideFeroxCantCastEffect()
|
||||
new NullhideFeroxCantCastEffect()
|
||||
));
|
||||
|
||||
// {2}: Nullhide Ferox loses all abilities until end of turn. Any player may activate this ability.
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class OchranAssassin extends CardImpl {
|
|||
|
||||
// All creatures able to block Ochran Assassin do so.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new MustBeBlockedByAllSourceEffect()
|
||||
new MustBeBlockedByAllSourceEffect()
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ class TobitaMasterOfWinds extends TokenImpl {
|
|||
|
||||
// Creatures you control have flying.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.WhileOnBattlefield, new FilterCreaturePermanent())));
|
||||
new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.WhileOnBattlefield, new FilterCreaturePermanent())));
|
||||
}
|
||||
private TobitaMasterOfWinds(final TobitaMasterOfWinds token) {
|
||||
super(token);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public final class TalonsOfWildwood extends CardImpl {
|
|||
|
||||
// Enchanted creature gets +1/+1 and has trample.
|
||||
ability = new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)
|
||||
new BoostEnchantedEffect(1, 1, Duration.WhileOnBattlefield)
|
||||
);
|
||||
ability.addEffect(new GainAbilityAttachedEffect(
|
||||
TrampleAbility.getInstance(),
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public final class TangleweaveArmor extends CardImpl {
|
|||
|
||||
// Equipped creature gets +X/+X, where X is the greatest mana value among your commanders
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new BoostEquippedEffect(CommanderGreatestManaValue.instance, CommanderGreatestManaValue.instance)
|
||||
new BoostEquippedEffect(CommanderGreatestManaValue.instance, CommanderGreatestManaValue.instance)
|
||||
));
|
||||
|
||||
// Equip {4}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public class PrototypeAbility extends SpellAbility {
|
|||
this.setSpellAbilityCastMode(SpellAbilityCastMode.PROTOTYPE);
|
||||
this.setTiming(TimingRule.SORCERY);
|
||||
this.addSubAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD, new PrototypeEffect(power, toughness, manaString)
|
||||
new PrototypeEffect(power, toughness, manaString)
|
||||
).setRuleVisible(false));
|
||||
this.rule = "Prototype " + manaString + " — " + power + "/" + toughness +
|
||||
" <i>(You may cast this spell with different mana cost, color, and size. It keeps its abilities and types.)</i>";
|
||||
|
|
@ -116,4 +116,4 @@ class PrototypeEffect extends ContinuousEffectImpl {
|
|||
permanent.getToughness().setModifiedBaseValue(toughness);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue