Merge pull request #3227 from drmDev/bug/wirefly

fixes #3226 wirefly tokens have flying
This commit is contained in:
Derek M 2017-04-23 19:49:39 -04:00 committed by GitHub
commit 89af3e7aaa

View file

@ -35,6 +35,7 @@ import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.CreateTokenEffect; import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.DestroyAllEffect; import mage.abilities.effects.common.DestroyAllEffect;
import mage.abilities.effects.common.FlipCoinEffect; import mage.abilities.effects.common.FlipCoinEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.cards.CardSetInfo; import mage.cards.CardSetInfo;
import mage.constants.CardType; import mage.constants.CardType;
@ -74,12 +75,13 @@ public class WireflyHive extends CardImpl {
class WireflyToken extends Token { class WireflyToken extends Token {
WireflyToken() { WireflyToken() {
super("Wirefly", "2/2 colorless Insect artifact creature token named Wirefly"); super("Wirefly", "2/2 colorless Insect artifact creature token with flying named Wirefly");
this.setOriginalExpansionSetCode("DST"); this.setOriginalExpansionSetCode("DST");
this.getPower().modifyBaseValue(2); this.getPower().modifyBaseValue(2);
this.getToughness().modifyBaseValue(2); this.getToughness().modifyBaseValue(2);
this.getSubtype(null).add("Insect"); this.getSubtype(null).add("Insect");
this.addCardType(CardType.ARTIFACT); this.addCardType(CardType.ARTIFACT);
this.addCardType(CardType.CREATURE); this.addCardType(CardType.CREATURE);
this.addAbility(FlyingAbility.getInstance());
} }
} }