mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Nylea's Colossus
This commit is contained in:
parent
b0598f5365
commit
5aa1c91831
2 changed files with 76 additions and 0 deletions
75
Mage.Sets/src/mage/cards/n/NyleasColossus.java
Normal file
75
Mage.Sets/src/mage/cards/n/NyleasColossus.java
Normal file
|
@ -0,0 +1,75 @@
|
|||
package mage.cards.n;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.abilityword.ConstellationAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Outcome;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class NyleasColossus extends CardImpl {
|
||||
|
||||
public NyleasColossus(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT, CardType.CREATURE}, "{6}{G}");
|
||||
|
||||
this.subtype.add(SubType.GIANT);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(6);
|
||||
|
||||
// Constellation — Whenever Nylea's Colossus or another enchantment enters the battlefield under your control, double target creature's power and toughness until end of turn.
|
||||
Ability ability = new ConstellationAbility(new NyleasColossusEffect(), false);
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
public NyleasColossus(final NyleasColossus card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NyleasColossus copy() {
|
||||
return new NyleasColossus(this);
|
||||
}
|
||||
}
|
||||
|
||||
class NyleasColossusEffect extends OneShotEffect {
|
||||
|
||||
public NyleasColossusEffect() {
|
||||
super(Outcome.BoostCreature);
|
||||
this.staticText = "double target creature's power and toughness until end of turn";
|
||||
}
|
||||
|
||||
public NyleasColossusEffect(final NyleasColossusEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NyleasColossusEffect copy() {
|
||||
return new NyleasColossusEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanent(source.getFirstTarget());
|
||||
if (permanent == null) {
|
||||
return false;
|
||||
}
|
||||
int power = permanent.getPower().getValue();
|
||||
int toughness = permanent.getToughness().getValue();
|
||||
game.addEffect(new BoostTargetEffect(power, toughness, Duration.EndOfTurn), source);
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -50,6 +50,7 @@ public final class Commander2018 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Loyal Guardian", 31, Rarity.UNCOMMON, mage.cards.l.LoyalGuardian.class));
|
||||
cards.add(new SetCardInfo("Loyal Subordinate", 16, Rarity.UNCOMMON, mage.cards.l.LoyalSubordinate.class));
|
||||
cards.add(new SetCardInfo("Nesting Dragon", 24, Rarity.RARE, mage.cards.n.NestingDragon.class));
|
||||
cards.add(new SetCardInfo("Nylea's Colossus", 33, Rarity.COMMON, mage.cards.n.NyleasColossus.class));
|
||||
cards.add(new SetCardInfo("Octopus Umbra", 11, Rarity.RARE, mage.cards.o.OctopusUmbra.class));
|
||||
cards.add(new SetCardInfo("Rampaging Baloths", 158, Rarity.RARE, mage.cards.r.RampagingBaloths.class));
|
||||
cards.add(new SetCardInfo("Retrofitter Foundry", 57, Rarity.RARE, mage.cards.r.RetrofitterFoundry.class));
|
||||
|
|
Loading…
Reference in a new issue