mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 12:31:59 -08:00
Implemented card Lightning Coils and test for it
This commit is contained in:
parent
348faa345b
commit
c109fc8a0e
4 changed files with 200 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ import java.util.ArrayList;
|
|||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.constants.CardType;
|
||||
|
||||
/**
|
||||
|
|
@ -58,5 +59,18 @@ public class ElementalToken extends Token {
|
|||
|
||||
this.setOriginalExpansionSetCode("CON");
|
||||
}
|
||||
|
||||
|
||||
public ElementalToken(String setCode, int tokenType, boolean hasHaste) {
|
||||
super("Elemental", "3/1 red Elemental creature token");
|
||||
setTokenType(tokenType);
|
||||
availableImageSetCodes = tokenImageSets;
|
||||
setOriginalExpansionSetCode(setCode);
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add("Elemental");
|
||||
power = new MageInt(3);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
if (hasHaste) this.addAbility(HasteAbility.getInstance());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue