mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[UNF] Implement Starlight Spectacular
This commit is contained in:
parent
4e7e0b2a8d
commit
4f961a9e70
2 changed files with 91 additions and 0 deletions
90
Mage.Sets/src/mage/cards/s/StarlightSpectacular.java
Normal file
90
Mage.Sets/src/mage/cards/s/StarlightSpectacular.java
Normal file
|
|
@ -0,0 +1,90 @@
|
||||||
|
package mage.cards.s;
|
||||||
|
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.BeginningOfCombatTriggeredAbility;
|
||||||
|
import mage.abilities.effects.OneShotEffect;
|
||||||
|
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.Outcome;
|
||||||
|
import mage.constants.TargetController;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.players.Player;
|
||||||
|
import mage.target.TargetPermanent;
|
||||||
|
import mage.target.common.TargetControlledCreaturePermanent;
|
||||||
|
import mage.target.targetpointer.FixedTarget;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class StarlightSpectacular extends CardImpl {
|
||||||
|
|
||||||
|
public StarlightSpectacular(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{W}{W}");
|
||||||
|
|
||||||
|
// Parade! -- At the beginning of combat on your turn, choose creatures you control one at a time until each creature you control has been chosen. Each of those creatures gets +1/+1 until end of turn for each creature chosen before it.
|
||||||
|
this.addAbility(new BeginningOfCombatTriggeredAbility(
|
||||||
|
new StarlightSpectacularEffect(), TargetController.YOU, false
|
||||||
|
).withFlavorWord("Parade!"));
|
||||||
|
}
|
||||||
|
|
||||||
|
private StarlightSpectacular(final StarlightSpectacular card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StarlightSpectacular copy() {
|
||||||
|
return new StarlightSpectacular(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class StarlightSpectacularEffect extends OneShotEffect {
|
||||||
|
|
||||||
|
StarlightSpectacularEffect() {
|
||||||
|
super(Outcome.Benefit);
|
||||||
|
staticText = "choose creatures you control one at a time until each creature you control has been chosen. " +
|
||||||
|
"Each of those creatures gets +1/+1 until end of turn for each creature chosen before it. " +
|
||||||
|
"<i>(Places everyone! The first creature in line gets +0/+0.)</i>";
|
||||||
|
}
|
||||||
|
|
||||||
|
private StarlightSpectacularEffect(final StarlightSpectacularEffect effect) {
|
||||||
|
super(effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StarlightSpectacularEffect copy() {
|
||||||
|
return new StarlightSpectacularEffect(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, Ability source) {
|
||||||
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
|
if (player == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
int count = game.getBattlefield().count(
|
||||||
|
StaticFilters.FILTER_CONTROLLED_CREATURE,
|
||||||
|
source.getControllerId(), source, game
|
||||||
|
);
|
||||||
|
if (count < 1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TargetPermanent target = new TargetControlledCreaturePermanent(count);
|
||||||
|
target.setNotTarget(true);
|
||||||
|
target.withChooseHint("the first creature you choose gets +0/+0");
|
||||||
|
player.choose(outcome, target, source, game);
|
||||||
|
int boost = 0;
|
||||||
|
for (UUID targetId : target.getTargets()) {
|
||||||
|
if (boost > 0) {
|
||||||
|
game.addEffect(new BoostTargetEffect(boost, boost)
|
||||||
|
.setTargetPointer(new FixedTarget(targetId, game)), source);
|
||||||
|
}
|
||||||
|
boost++;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -44,6 +44,7 @@ public final class Unfinity extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Sacred Foundry", 285, Rarity.RARE, mage.cards.s.SacredFoundry.class));
|
cards.add(new SetCardInfo("Sacred Foundry", 285, Rarity.RARE, mage.cards.s.SacredFoundry.class));
|
||||||
cards.add(new SetCardInfo("Saw in Half", 88, Rarity.RARE, mage.cards.s.SawInHalf.class));
|
cards.add(new SetCardInfo("Saw in Half", 88, Rarity.RARE, mage.cards.s.SawInHalf.class));
|
||||||
cards.add(new SetCardInfo("Slight Malfunction", 123, Rarity.COMMON, mage.cards.s.SlightMalfunction.class));
|
cards.add(new SetCardInfo("Slight Malfunction", 123, Rarity.COMMON, mage.cards.s.SlightMalfunction.class));
|
||||||
|
cards.add(new SetCardInfo("Starlight Spectacular", 28, Rarity.RARE, mage.cards.s.StarlightSpectacular.class));
|
||||||
cards.add(new SetCardInfo("Steam Vents", 283, Rarity.RARE, mage.cards.s.SteamVents.class));
|
cards.add(new SetCardInfo("Steam Vents", 283, Rarity.RARE, mage.cards.s.SteamVents.class));
|
||||||
cards.add(new SetCardInfo("Stomping Ground", 280, Rarity.RARE, mage.cards.s.StompingGround.class));
|
cards.add(new SetCardInfo("Stomping Ground", 280, Rarity.RARE, mage.cards.s.StompingGround.class));
|
||||||
cards.add(new SetCardInfo("Swamp", 237, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Swamp", 237, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue