mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 04:09:54 -08:00
[minor] Fixed rule text generation.
This commit is contained in:
parent
0e87313e1a
commit
72ca119ece
2 changed files with 28 additions and 3 deletions
|
|
@ -28,10 +28,12 @@
|
|||
package mage.sets.newphyrexia;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.StaticAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
|
||||
/**
|
||||
|
|
@ -51,6 +53,7 @@ public class MyrSuperion extends CardImpl<MyrSuperion> {
|
|||
this.toughness = new MageInt(6);
|
||||
|
||||
// Spend only mana produced by creatures to cast Myr Superion.
|
||||
this.addAbility(new MyrSuperionStaticAbility());
|
||||
this.getSpellAbility().getManaCostsToPay().setSourceFilter(filter);
|
||||
this.getSpellAbility().getManaCosts().setSourceFilter(filter);
|
||||
}
|
||||
|
|
@ -64,3 +67,25 @@ public class MyrSuperion extends CardImpl<MyrSuperion> {
|
|||
return new MyrSuperion(this);
|
||||
}
|
||||
}
|
||||
|
||||
class MyrSuperionStaticAbility extends StaticAbility<MyrSuperionStaticAbility> {
|
||||
|
||||
public MyrSuperionStaticAbility() {
|
||||
super(Zone.STACK, null);
|
||||
}
|
||||
|
||||
public MyrSuperionStaticAbility(MyrSuperionStaticAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MyrSuperionStaticAbility copy() {
|
||||
return new MyrSuperionStaticAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Spend only mana produced by creatures to cast {this}.";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue