forked from External/mage
Refactor - changed visibility of DragonToken classes used in separate Card classes in prep for card reorg
This commit is contained in:
parent
0d3b18c70d
commit
15478460f9
3 changed files with 32 additions and 41 deletions
|
|
@ -71,18 +71,18 @@ public class DragonBroodmother extends CardImpl {
|
|||
public DragonBroodmother copy() {
|
||||
return new DragonBroodmother(this);
|
||||
}
|
||||
}
|
||||
|
||||
class DragonToken extends Token {
|
||||
DragonToken() {
|
||||
super("Dragon", "1/1 red and green Dragon creature token with flying and devour 2");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
color.setRed(true);
|
||||
subtype.add("Dragon");
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
addAbility(new DevourAbility(DevourEffect.DevourFactor.Devour2));
|
||||
class DragonToken extends Token {
|
||||
DragonToken() {
|
||||
super("Dragon", "1/1 red and green Dragon creature token with flying and devour 2");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setGreen(true);
|
||||
color.setRed(true);
|
||||
subtype.add("Dragon");
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
addAbility(new DevourAbility(DevourEffect.DevourFactor.Devour2));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -73,20 +73,20 @@ public class DragonEgg extends CardImpl {
|
|||
public DragonEgg copy() {
|
||||
return new DragonEgg(this);
|
||||
}
|
||||
}
|
||||
|
||||
class DragonToken extends Token {
|
||||
class DragonToken extends Token {
|
||||
|
||||
DragonToken() {
|
||||
super("Dragon", "2/2 red Dragon creature token with flying that has \"{R}: This creature gets +1/+0 until end of turn");
|
||||
this.setOriginalExpansionSetCode("M14");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add("Dragon");
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
|
||||
|
||||
DragonToken() {
|
||||
super("Dragon", "2/2 red Dragon creature token with flying that has \"{R}: This creature gets +1/+0 until end of turn");
|
||||
this.setOriginalExpansionSetCode("M14");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add("Dragon");
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
addAbility(FlyingAbility.getInstance());
|
||||
addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new BoostSourceEffect(1, 0, Duration.EndOfTurn), new ManaCostsImpl("{R}")));
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,9 +27,6 @@
|
|||
*/
|
||||
package mage.sets.riseoftheeldrazi;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.LoyaltyAbility;
|
||||
|
|
@ -47,12 +44,16 @@ import mage.filter.predicate.mageobject.CardTypePredicate;
|
|||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.permanent.token.DragonToken2;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author maurer.it_at_gmail.com
|
||||
|
|
@ -145,7 +146,7 @@ class SarkhanTheMadSacEffect extends OneShotEffect {
|
|||
if (permanent != null) {
|
||||
Player player = game.getPlayer(permanent.getControllerId());
|
||||
permanent.sacrifice(this.getId(), game);
|
||||
Token dragonToken = new DragonToken();
|
||||
Token dragonToken = new DragonToken2();
|
||||
dragonToken.putOntoBattlefield(1, game, this.getId(), player.getId());
|
||||
}
|
||||
return false;
|
||||
|
|
@ -155,7 +156,6 @@ class SarkhanTheMadSacEffect extends OneShotEffect {
|
|||
public SarkhanTheMadSacEffect copy() {
|
||||
return new SarkhanTheMadSacEffect(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class SarkhanTheMadDragonDamageEffect extends OneShotEffect {
|
||||
|
|
@ -198,12 +198,3 @@ class SarkhanTheMadDragonDamageEffect extends OneShotEffect {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
class DragonToken extends mage.game.permanent.token.DragonToken {
|
||||
|
||||
DragonToken() {
|
||||
super();
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(5);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue