mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 20:29:19 -08:00
Added GoblinToken and refactored cards using it
This commit is contained in:
parent
c386e15dff
commit
c366f3ed61
3 changed files with 52 additions and 27 deletions
|
|
@ -43,7 +43,7 @@ import mage.abilities.effects.common.DamageTargetEffect;
|
|||
import mage.cards.CardImpl;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.game.permanent.token.GoblinToken;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
import mage.target.common.TargetCreatureOrPlayer;
|
||||
|
||||
|
|
@ -83,14 +83,3 @@ public class SiegeGangCommander extends CardImpl<SiegeGangCommander> {
|
|||
return new SiegeGangCommander(this);
|
||||
}
|
||||
}
|
||||
|
||||
class GoblinToken extends Token {
|
||||
public GoblinToken() {
|
||||
super("Goblin", "1/1 red Goblin creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add("Goblin");
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,14 +30,12 @@ package mage.sets.scarsofmirrodin;
|
|||
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
import mage.MageInt;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.game.permanent.token.GoblinToken;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
|
@ -47,7 +45,7 @@ import java.util.UUID;
|
|||
* @author Loki
|
||||
*/
|
||||
public class KuldothaRebirth extends CardImpl<KuldothaRebirth> {
|
||||
private static FilterControlledPermanent filter = new FilterControlledPermanent("an artifact");
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("an artifact");
|
||||
|
||||
static {
|
||||
filter.getCardType().add(CardType.ARTIFACT);
|
||||
|
|
@ -71,15 +69,4 @@ public class KuldothaRebirth extends CardImpl<KuldothaRebirth> {
|
|||
return new KuldothaRebirth(this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class GoblinToken extends Token {
|
||||
public GoblinToken() {
|
||||
super("Goblin", "1/1 red Goblin creature token");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color = ObjectColor.RED;
|
||||
subtype.add("Goblin");
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue