mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
[OTJ] Implement Roxanne, Starfall Savant
This commit is contained in:
parent
6f7047c763
commit
c42e67ea0f
7 changed files with 100 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ public class TapForManaAllTriggeredAbility extends TriggeredAbilityImpl {
|
|||
setTriggerPhrase("Whenever " + filter.getMessage() + " for mana, ");
|
||||
}
|
||||
|
||||
public TapForManaAllTriggeredAbility(TapForManaAllTriggeredAbility ability) {
|
||||
private TapForManaAllTriggeredAbility(TapForManaAllTriggeredAbility ability) {
|
||||
super(ability);
|
||||
this.filter = ability.filter.copy();
|
||||
this.setTargetPointer = ability.setTargetPointer;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class TapForManaAllTriggeredManaAbility extends TriggeredManaAbility {
|
|||
setTriggerPhrase("Whenever " + filter.getMessage() + " for mana, ");
|
||||
}
|
||||
|
||||
public TapForManaAllTriggeredManaAbility(TapForManaAllTriggeredManaAbility ability) {
|
||||
private TapForManaAllTriggeredManaAbility(TapForManaAllTriggeredManaAbility ability) {
|
||||
super(ability);
|
||||
this.filter = ability.filter.copy();
|
||||
this.setTargetPointer = ability.setTargetPointer;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,38 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.mana.AnyColorManaAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
|
||||
/**
|
||||
* @author Susucr
|
||||
*/
|
||||
public final class MeteoriteToken extends TokenImpl {
|
||||
|
||||
public MeteoriteToken() {
|
||||
super("Meteorite", "colorless artifact token named Meteorite with "
|
||||
+ "\"When Meteorite enters the battlefield, it deals 2 damage to any target\" "
|
||||
+ "and \"{T}: Add one mana of any color.\"");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
|
||||
// When Meteorite enters the battlefield, it deals 2 damage to any target.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(2, "it"), false);
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
||||
// {T}: Add one mana of any color.
|
||||
this.addAbility(new AnyColorManaAbility());
|
||||
}
|
||||
|
||||
private MeteoriteToken(final MeteoriteToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MeteoriteToken copy() {
|
||||
return new MeteoriteToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue