Merge pull request #3769 from Eleros/feature/HASCON2017Promos

Feature/hascon2017 promos
This commit is contained in:
LevelX2 2017-08-04 22:39:20 +02:00 committed by GitHub
commit 9a1ce3f449
11 changed files with 387 additions and 13 deletions

View file

@ -587,6 +587,7 @@
|Generate|TOK:GTC|Soldier|2||SoldierTokenWithHaste| |Generate|TOK:GTC|Soldier|2||SoldierTokenWithHaste|
|Generate|TOK:GTC|Spirit|||TeysaEnvoyOfGhostsToken| |Generate|TOK:GTC|Spirit|||TeysaEnvoyOfGhostsToken|
|Generate|TOK:H09|Sliver|||SliversmithToken| |Generate|TOK:H09|Sliver|||SliversmithToken|
|Generate|TOK:H17|Dragon|||DragonTokenGold|
|Generate|TOK:HML|Plant Wall|||KelpToken| |Generate|TOK:HML|Plant Wall|||KelpToken|
|Generate|TOK:HML|Serf|||SerfToken| |Generate|TOK:HML|Serf|||SerfToken|
|Generate|TOK:HML|Skeleton|||SkeletonToken| |Generate|TOK:HML|Skeleton|||SkeletonToken|
@ -1060,6 +1061,7 @@
|Generate|TOK:USG|Goblin|||GoblinToken| |Generate|TOK:USG|Goblin|||GoblinToken|
|Generate|TOK:USG|Minion|||MinionToken| |Generate|TOK:USG|Minion|||MinionToken|
|Generate|TOK:USG|Saproling|||SaprolingToken| |Generate|TOK:USG|Saproling|||SaprolingToken|
|Generate|TOK:UST|Dragon|||DragonTokenGold|
|Generate|TOK:V10|Wolf|||WolfToken| |Generate|TOK:V10|Wolf|||WolfToken|
|Generate|TOK:V11|Faerie Rogue|||OonaQueenFaerieToken| |Generate|TOK:V11|Faerie Rogue|||OonaQueenFaerieToken|
|Generate|TOK:V12|Spirit|||SpiritToken| |Generate|TOK:V12|Spirit|||SpiritToken|

View file

@ -74,6 +74,6 @@ dd3evg=ddaevg
dd3gvl=ddagvl dd3gvl=ddagvl
dd3jvc=ddajvc dd3jvc=ddajvc
# Remove setname as soon as the images can be downloaded # Remove setname as soon as the images can be downloaded
ignore.urls=TOK,DDT,V17,IMA,XLN,RIX,,E02,M19,M25,DOM ignore.urls=TOK,DDT,V17,IMA,XLN,RIX,,E02,M19,M25,DOM,UST,H17
# sets ordered by release time (newest goes first) # sets ordered by release time (newest goes first)
token.lookup.order=M19,M25,DOM,E02,RIX,XLN,IMA,C17,V17,E01,DDT,CMA,HOU,MM3,DDS,AKH,DD3DVD,DD3EVG,DD3GVL,DD3JVC,H09,AER,PCA,C16,V16,MPS,KLD,DDR,CN2,EMN,EMA,SOI,DDQ,CP,CMA,ARENA,SUS,APAC,EURO,UGIN,C15,OGW,EXP,DDP,BFZ,DRB,V09,V10,V11,V12,V13,V14,V15,TPR,MPRP,DD3,DDO,ORI,MM2,PTC,DTK,FRF,KTK,M15,VMA,CNS,JOU,BNG,THS,DDL,M14,MMA,DGM,GTC,RTR,M13,AVR,DDI,DKA,ISD,M12,NPH,MBS,SOM,M11,ROE,DDE,WWK,ZEN,M10,GVL,ARB,DVD,CFX,JVC,ALA,EVE,SHM,EVG,MOR,LRW,10E,CLS,CHK,GRC token.lookup.order=M19,M25,DOM,E02,RIX,UST,XLN,IMA,H17,C17,V17,E01,DDT,CMA,HOU,MM3,DDS,AKH,DD3DVD,DD3EVG,DD3GVL,DD3JVC,H09,AER,PCA,C16,V16,MPS,KLD,DDR,CN2,EMN,EMA,SOI,DDQ,CP,CMA,ARENA,SUS,APAC,EURO,UGIN,C15,OGW,EXP,DDP,BFZ,DRB,V09,V10,V11,V12,V13,V14,V15,TPR,MPRP,DD3,DDO,ORI,MM2,PTC,DTK,FRF,KTK,M15,VMA,CNS,JOU,BNG,THS,DDL,M14,MMA,DGM,GTC,RTR,M13,AVR,DDI,DKA,ISD,M12,NPH,MBS,SOM,M11,ROE,DDE,WWK,ZEN,M10,GVL,ARB,DVD,CFX,JVC,ALA,EVE,SHM,EVG,MOR,LRW,10E,CLS,CHK,GRC

View file

@ -0,0 +1,171 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.cards.s;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.Effect;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.BoostEquippedEffect;
import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect;
import mage.abilities.keyword.EquipAbility;
import mage.abilities.keyword.ProtectionAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AttachmentType;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.filter.FilterCard;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.game.Game;
import mage.game.events.DamagedPlayerEvent;
import mage.game.events.GameEvent;
import mage.game.events.GameEvent.EventType;
import mage.game.permanent.Permanent;
import mage.game.permanent.token.DragonTokenGold;
import mage.players.Player;
import mage.target.targetpointer.FixedTarget;
/**
*
* @author Saga
*/
public class SwordOfDungeonsAndDragons extends CardImpl {
private static final FilterCard filter = new FilterCard("Rogues and from Clerics");
static {filter.add(Predicates.or(
new SubtypePredicate(SubType.ROGUE),
new SubtypePredicate(SubType.CLERIC)
));
}
public SwordOfDungeonsAndDragons(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT},"{3}");
this.subtype.add("Equipment");
// Equipped creature gets +2/+2 and has protection from Rogues and from Clerics.
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(2, 2));
Effect effect = new GainAbilityAttachedEffect(new ProtectionAbility(filter), AttachmentType.EQUIPMENT);
effect.setText("and has protection from Rogues and from Clerics");
ability.addEffect(effect);
this.addAbility(ability);
// Whenever equipped creature deals combat damage to a player, you create a 4/4 gold Dragon creature token with flying and roll a d20. If you roll a 20, repeat this process.
this.addAbility(new SwordOfDungeonsAndDragonsAbility());
// Equip {2}
this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(2)));
}
public SwordOfDungeonsAndDragons(final SwordOfDungeonsAndDragons card) {
super(card);
}
@Override
public SwordOfDungeonsAndDragons copy() {
return new SwordOfDungeonsAndDragons(this);
}
}
class SwordOfDungeonsAndDragonsAbility extends TriggeredAbilityImpl {
public SwordOfDungeonsAndDragonsAbility() {
super(Zone.BATTLEFIELD, new SwordOfDungeonsAndDragonsEffect(),false);
}
public SwordOfDungeonsAndDragonsAbility(final SwordOfDungeonsAndDragonsAbility ability) {
super(ability);
}
@Override
public SwordOfDungeonsAndDragonsAbility copy() {
return new SwordOfDungeonsAndDragonsAbility(this);
}
@Override
public boolean checkEventType(GameEvent event, Game game) {
return event.getType() == EventType.DAMAGED_PLAYER;
}
@Override
public boolean checkTrigger(GameEvent event, Game game) {
DamagedPlayerEvent damageEvent = (DamagedPlayerEvent)event;
Permanent p = game.getPermanent(event.getSourceId());
if (damageEvent.isCombatDamage() && p != null && p.getAttachments().contains(this.getSourceId())) {
for (Effect effect : this.getEffects()) {
effect.setTargetPointer(new FixedTarget(event.getPlayerId()));
}
return true;
}
return false;
}
@Override
public String getRule() {
return "Whenever equipped creature deals combat damage to a player, you create a 4/4 gold Dragon creature token with flying and roll a d20. If you roll a 20, repeat this process.";
}
}
class SwordOfDungeonsAndDragonsEffect extends OneShotEffect {
public SwordOfDungeonsAndDragonsEffect() {
super(Outcome.Benefit);
}
public SwordOfDungeonsAndDragonsEffect(final SwordOfDungeonsAndDragonsEffect effect) {
super(effect);
}
@Override
public SwordOfDungeonsAndDragonsEffect copy() {
return new SwordOfDungeonsAndDragonsEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
int count = 1;
int dice = (int)(Math.random()*20+1);
while (dice == 20) {
count += 1;
dice = (int)(Math.random()*20+1);
}
return new CreateTokenEffect(new DragonTokenGold(), count).apply(game, source);
}
return false;
}
}

View file

@ -0,0 +1,49 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.sets;
import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
/**
*
* @author Saga
*/
public class HasconPromo2017 extends ExpansionSet {
private static final HasconPromo2017 instance = new HasconPromo2017();
public static HasconPromo2017 getInstance() {
return instance;
}
private HasconPromo2017() {
super("HASCON Promo 2017", "H17", ExpansionSet.buildDate(2017, 9, 8), SetType.JOKESET);
cards.add(new ExpansionSet.SetCardInfo("Sword of Dungeons & Dragons", 3, Rarity.MYTHIC, mage.cards.s.SwordOfDungeonsAndDragons.class));
}
}

View file

@ -28,6 +28,7 @@
package mage.sets; package mage.sets;
import mage.cards.ExpansionSet; import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType; import mage.constants.SetType;
/** /**
@ -43,6 +44,6 @@ public class Unstable extends ExpansionSet {
private Unstable() { private Unstable() {
super("Unstable", "UST", ExpansionSet.buildDate(2017, 12, 8), SetType.JOKESET); super("Unstable", "UST", ExpansionSet.buildDate(2017, 12, 8), SetType.JOKESET);
cards.add(new SetCardInfo("Sword of Dungeons and Dragons", 1, Rarity.MYTHIC, mage.cards.s.SwordOfDungeonsAndDragons.class));
} }
} }

View file

@ -42,12 +42,16 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
public static final ObjectColor BLACK = new ObjectColor("B"); public static final ObjectColor BLACK = new ObjectColor("B");
public static final ObjectColor RED = new ObjectColor("R"); public static final ObjectColor RED = new ObjectColor("R");
public static final ObjectColor GREEN = new ObjectColor("G"); public static final ObjectColor GREEN = new ObjectColor("G");
public static final ObjectColor GOLD = new ObjectColor("O");
private boolean white; private boolean white;
private boolean blue; private boolean blue;
private boolean black; private boolean black;
private boolean red; private boolean red;
private boolean green; private boolean green;
private boolean gold;
public ObjectColor() { public ObjectColor() {
} }
@ -70,6 +74,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
case 'G': case 'G':
green = true; green = true;
break; break;
case 'O':
gold = true;
break;
} }
} }
} }
@ -80,6 +88,8 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
black = color.black; black = color.black;
red = color.red; red = color.red;
green = color.green; green = color.green;
gold = color.gold;
} }
/** /**
@ -96,6 +106,8 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
newColor.black = black || other.black; newColor.black = black || other.black;
newColor.red = red || other.red; newColor.red = red || other.red;
newColor.green = green || other.green; newColor.green = green || other.green;
newColor.gold = gold || other.gold;
return newColor; return newColor;
} }
@ -133,6 +145,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (red) { if (red) {
count++; count++;
} }
if (gold) {
count++;
}
return count; return count;
} }
@ -153,6 +169,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (this.isGreen()) { if (this.isGreen()) {
colors.add(ObjectColor.GREEN); colors.add(ObjectColor.GREEN);
} }
if (this.isGold()) {
colors.add(ObjectColor.GOLD);
}
return colors; return colors;
} }
@ -162,6 +182,8 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
this.setGreen(color.isGreen()); this.setGreen(color.isGreen());
this.setRed(color.isRed()); this.setRed(color.isRed());
this.setWhite(color.isWhite()); this.setWhite(color.isWhite());
this.setGold(color.isGold());
} }
public void addColor(ObjectColor color) { public void addColor(ObjectColor color) {
@ -180,6 +202,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (color.isGreen()) { if (color.isGreen()) {
setGreen(true); setGreen(true);
} }
if (color.isGold()) {
setGold(true);
}
} }
public boolean isColorless() { public boolean isColorless() {
@ -187,23 +213,32 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
} }
public boolean hasColor() { public boolean hasColor() {
return white || blue || black || red || green; return white || blue || black || red || green
|| gold;
} }
public boolean isMulticolored() { public boolean isMulticolored() {
if (isColorless()) { if (isColorless()) {
return false; return false;
} }
if (white && (blue || black || red || green)) { if (white && (blue || black || red || green
|| gold)) {
return true; return true;
} }
if (blue && (black || red || green)) { if (blue && (black || red || green
|| gold)) {
return true; return true;
} }
if (black && (red || green)) { if (black && (red || green
|| gold)) {
return true; return true;
} }
return red && green; if (red && (green
|| gold)) {
return true;
}
return green
&& gold;
} }
public boolean isWhite() { public boolean isWhite() {
@ -245,6 +280,15 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
public void setGreen(boolean green) { public void setGreen(boolean green) {
this.green = green; this.green = green;
} }
public boolean isGold() {
return gold;
}
public void setGold(boolean gold) {
this.gold = gold;
}
@Override @Override
public String toString() { public String toString() {
@ -264,6 +308,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (green) { if (green) {
sb.append('G'); sb.append('G');
} }
if (gold) {
sb.append('O');
}
return sb.toString(); return sb.toString();
} }
@ -286,6 +334,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (green) { if (green) {
return "green"; return "green";
} }
if (gold) {
return "gold";
}
} }
return "colorless"; return "colorless";
} }
@ -311,7 +363,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (test.red != this.red) { if (test.red != this.red) {
return false; return false;
} }
return test.green == this.green; if (test.green != this.green) {
return false;
}
return test.gold == this.gold;
} }
@Override @Override
@ -322,6 +377,8 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
hash = 23 * hash + (this.black ? 1 : 0); hash = 23 * hash + (this.black ? 1 : 0);
hash = 23 * hash + (this.red ? 1 : 0); hash = 23 * hash + (this.red ? 1 : 0);
hash = 23 * hash + (this.green ? 1 : 0); hash = 23 * hash + (this.green ? 1 : 0);
hash = 23 * hash + (this.gold ? 1 : 0);
return hash; return hash;
} }
@ -344,6 +401,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (color.green && this.green) { if (color.green && this.green) {
return true; return true;
} }
if (color.gold && this.gold) {
return true;
}
return false; return false;
} }
@ -351,7 +412,8 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
// 105.4. [...] Multicolored is not a color. Neither is colorless. // 105.4. [...] Multicolored is not a color. Neither is colorless.
return !color.isColorless() return !color.isColorless()
&& (color.white && white || color.blue && blue || color.black && black && (color.white && white || color.blue && blue || color.black && black
|| color.red && red || color.green && green); || color.red && red || color.green && green
|| color.gold && gold);
} }
@Override @Override
@ -365,7 +427,7 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
int o2 = 0; int o2 = 0;
if (this.isMulticolored()) { if (this.isMulticolored()) {
o1 = 6; o1 = 7;
} else if (this.isColorless()) { } else if (this.isColorless()) {
o1 = 0; o1 = 0;
} else if (this.isBlack()) { } else if (this.isBlack()) {
@ -378,9 +440,12 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
o1 = 4; o1 = 4;
} else if (this.isWhite()) { } else if (this.isWhite()) {
o1 = 5; o1 = 5;
} else if (this.isGold()) {
o1 = 6;
} }
if (o.isMulticolored()) { if (o.isMulticolored()) {
o2 = 6; o2 = 7;
} else if (o.isColorless()) { } else if (o.isColorless()) {
o2 = 0; o2 = 0;
} else if (o.isBlack()) { } else if (o.isBlack()) {
@ -393,6 +458,9 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
o2 = 4; o2 = 4;
} else if (o.isWhite()) { } else if (o.isWhite()) {
o2 = 5; o2 = 5;
} else if (o.isGold()) {
o2 = 6;
} }
return o1 - o2; return o1 - o2;
} }
@ -419,6 +487,10 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
if (isWhite()) { if (isWhite()) {
return ColoredManaSymbol.W; return ColoredManaSymbol.W;
} }
if (isGold()) {
return ColoredManaSymbol.O;
}
return null; return null;
} }
@ -429,6 +501,8 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
colors.add(ObjectColor.BLACK); colors.add(ObjectColor.BLACK);
colors.add(ObjectColor.RED); colors.add(ObjectColor.RED);
colors.add(ObjectColor.GREEN); colors.add(ObjectColor.GREEN);
colors.add(ObjectColor.GOLD);
return colors; return colors;
} }

View file

@ -5,7 +5,9 @@ package mage.constants;
* @author North * @author North
*/ */
public enum ColoredManaSymbol { public enum ColoredManaSymbol {
W("W","white"), U("U","blue"), B("B","black"), R("R","red"), G("G","green"); W("W","white"), U("U","blue"), B("B","black"), R("R","red"), G("G","green"),
O("O","gold");
private final String text; private final String text;
private final String colorName; private final String colorName;
@ -38,6 +40,9 @@ public enum ColoredManaSymbol {
return B; return B;
case 'U': case 'U':
return U; return U;
case 'O':
return O;
} }
return null; return null;
} }

View file

@ -0,0 +1,69 @@
/*
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* The views and conclusions contained in the software and documentation are those of the
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.game.permanent.token;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.constants.CardType;
/**
*
* @author Saga
*/
public class DragonTokenGold extends Token {
final static private List<String> tokenImageSets = new ArrayList<>();
static {
tokenImageSets.addAll(Arrays.asList("UST","H17"));
}
public DragonTokenGold() {
this(null, 0);
}
public DragonTokenGold(String setCode) {
this(setCode, 0);
}
public DragonTokenGold(String setCode, int tokenType) {
super("Dragon", "4/4 gold Dragon creature token with flying");
availableImageSetCodes = tokenImageSets;
setOriginalExpansionSetCode(setCode);
cardType.add(CardType.CREATURE);
color.setGold(true);
subtype.add("Dragon");
power = new MageInt(4);
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());
}
}

View file

@ -89,6 +89,7 @@ Gatecrash|Gatecrash|
Grand Prix|GrandPrix| Grand Prix|GrandPrix|
Guildpact|Guildpact| Guildpact|Guildpact|
Guru|Guru| Guru|Guru|
HASCON Promo 2017|HasconPromo2017|
Homelands|Homelands| Homelands|Homelands|
Hour of Devastation|HourOfDevastation| Hour of Devastation|HourOfDevastation|
Ice Age|IceAge| Ice Age|IceAge|

View file

@ -32065,3 +32065,4 @@ Drowned Catacomb|Ixalan|???|R||Land|||Drowned Catacomb enters the battlefield ta
Glacial Fortress|Ixalan|???|R||Land|||Glacial Fortress enters the battlefield tapped unless you control a Plains or an Island.${T}: Add {W} or {U} to your mana pool.| Glacial Fortress|Ixalan|???|R||Land|||Glacial Fortress enters the battlefield tapped unless you control a Plains or an Island.${T}: Add {W} or {U} to your mana pool.|
Rootbound Crag|Ixalan|???|R||Land|||Rootbound Crag enters the battlefield tapped unless you control a Mountain or a Forest.${T}: Add {R} or {G} to your mana pool.| Rootbound Crag|Ixalan|???|R||Land|||Rootbound Crag enters the battlefield tapped unless you control a Mountain or a Forest.${T}: Add {R} or {G} to your mana pool.|
Sunpetal Grove|Ixalan|???|R||Land|||Sunpetal Grove enters the battlefield tapped unless you control a Forest or a Plains.${T}: Add {G} or {W} to your mana pool.| Sunpetal Grove|Ixalan|???|R||Land|||Sunpetal Grove enters the battlefield tapped unless you control a Forest or a Plains.${T}: Add {G} or {W} to your mana pool.|
Sword of Dungeons and Dragons|Unstable|1|M|{3}|Artifact - Equipment|||Equipped creature gets +2/+2 and has protection from Rogues and from Clerics.$Whenever equipped creature deals combat damage to a player, create a 4/4 gold Dragon creature token with flying and roll a d20. If you roll a 20, repeat this process.$Equip {2}|

View file

@ -180,6 +180,7 @@ Urza's Legacy|ULG|
Unhinged|UNH| Unhinged|UNH|
Urza's Saga|USG| Urza's Saga|USG|
Unstable|UST| Unstable|UST|
HASCON Promo 2017|H17|
From the Vault: Exiled|V09| From the Vault: Exiled|V09|
From the Vault: Relics|V10| From the Vault: Relics|V10|
From the Vault: Legends|V11| From the Vault: Legends|V11|