forked from External/mage
[FIC] Implement Sphere Grid
This commit is contained in:
parent
c12c363843
commit
0a0d6db742
2 changed files with 59 additions and 0 deletions
57
Mage.Sets/src/mage/cards/s/SphereGrid.java
Normal file
57
Mage.Sets/src/mage/cards/s/SphereGrid.java
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityAllEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.ReachAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SetTargetPointer;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SphereGrid extends CardImpl {
|
||||
|
||||
public SphereGrid(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{G}");
|
||||
|
||||
// Whenever a creature you control deals combat damage to a player, put a +1/+1 counter on that creature.
|
||||
this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility(
|
||||
new AddCountersTargetEffect(CounterType.P1P1.createInstance())
|
||||
.setText("put a +1/+1 counter on that creature"),
|
||||
StaticFilters.FILTER_CONTROLLED_CREATURE, false,
|
||||
SetTargetPointer.PERMANENT, true
|
||||
));
|
||||
|
||||
// Unlock Ability -- Creatures you control with +1/+1 counters on them have reach and trample.
|
||||
Ability ability = new SimpleStaticAbility(new GainAbilityAllEffect(
|
||||
ReachAbility.getInstance(), Duration.WhileOnBattlefield,
|
||||
StaticFilters.FILTER_CONTROLLED_CREATURE_P1P1
|
||||
).setText("creatures you control with +1/+1 counters on them have reach"));
|
||||
ability.addEffect(new GainAbilityControlledEffect(
|
||||
TrampleAbility.getInstance(), Duration.WhileOnBattlefield,
|
||||
StaticFilters.FILTER_CONTROLLED_CREATURE_P1P1
|
||||
).setText("and trample"));
|
||||
this.addAbility(ability.withFlavorWord("Unlock Ability"));
|
||||
}
|
||||
|
||||
private SphereGrid(final SphereGrid card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SphereGrid copy() {
|
||||
return new SphereGrid(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -272,6 +272,8 @@ public final class FinalFantasyCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Sol Ring", 358, Rarity.UNCOMMON, mage.cards.s.SolRing.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Sol Ring", 359, Rarity.UNCOMMON, mage.cards.s.SolRing.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Solemn Simulacrum", 360, Rarity.RARE, mage.cards.s.SolemnSimulacrum.class));
|
||||
cards.add(new SetCardInfo("Sphere Grid", 123, Rarity.RARE, mage.cards.s.SphereGrid.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Sphere Grid", 70, Rarity.RARE, mage.cards.s.SphereGrid.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Spire of Industry", 426, Rarity.RARE, mage.cards.s.SpireOfIndustry.class));
|
||||
cards.add(new SetCardInfo("Stitch Together", 286, Rarity.UNCOMMON, mage.cards.s.StitchTogether.class));
|
||||
cards.add(new SetCardInfo("Stitcher's Supplier", 287, Rarity.UNCOMMON, mage.cards.s.StitchersSupplier.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue