mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
[DMU] Implemented all currently previewed cards (#9304)
This commit is contained in:
parent
d392cfba0b
commit
6cfefeea95
13 changed files with 630 additions and 0 deletions
|
|
@ -0,0 +1,61 @@
|
|||
package mage.game.command.emblems;
|
||||
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.common.FilterInstantOrSorcerySpell;
|
||||
import mage.filter.predicate.mageobject.ColorPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.command.Emblem;
|
||||
import mage.game.stack.Spell;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class JayaFieryNegotiatorEmblem extends Emblem {
|
||||
|
||||
private static final FilterSpell filter = new FilterInstantOrSorcerySpell("a red instant or sorcery spell");
|
||||
|
||||
static {
|
||||
filter.add(new ColorPredicate(ObjectColor.RED));
|
||||
}
|
||||
|
||||
// −8: You get an emblem with "Whenever you cast a red instant or sorcery spell, copy it twice. You may choose new targets for the copies."
|
||||
public JayaFieryNegotiatorEmblem() {
|
||||
this.setName("Emblem Jaya");
|
||||
this.setExpansionSetCodeForImage("DMU");
|
||||
this.getAbilities().add(new SpellCastControllerTriggeredAbility(
|
||||
new JayaFieryNegotiatorEmblemEffect(), filter, false
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
class JayaFieryNegotiatorEmblemEffect extends OneShotEffect {
|
||||
|
||||
JayaFieryNegotiatorEmblemEffect() {
|
||||
super(Outcome.Benefit);
|
||||
staticText = "copy it twice. You may choose new targets for the copies";
|
||||
}
|
||||
|
||||
private JayaFieryNegotiatorEmblemEffect(final JayaFieryNegotiatorEmblemEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public JayaFieryNegotiatorEmblemEffect copy() {
|
||||
return new JayaFieryNegotiatorEmblemEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Spell spell = (Spell) getValue("spellCast");
|
||||
if (spell == null) {
|
||||
return false;
|
||||
}
|
||||
spell.createCopyOnStack(game, source, source.getControllerId(), true, 2);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.ProwessAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MonkRedToken extends TokenImpl {
|
||||
|
||||
public MonkRedToken() {
|
||||
super("Monk Token", "1/1 red Monk creature token with prowess");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.MONK);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(new ProwessAbility());
|
||||
|
||||
availableImageSetCodes = Arrays.asList("DMU");
|
||||
}
|
||||
|
||||
public MonkRedToken(final MonkRedToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public MonkRedToken copy() {
|
||||
return new MonkRedToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue