mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
ObjectColor objects are mutable, so let's not assign the 'constant' ones to variables
This commit is contained in:
parent
096a2868a9
commit
91176a19dd
13 changed files with 16 additions and 19 deletions
|
@ -15,7 +15,7 @@ import mage.cards.CardSetInfo;
|
|||
public class Forest extends BasicLand {
|
||||
public Forest(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new GreenManaAbility());
|
||||
this.frameColor = ObjectColor.GREEN;
|
||||
this.frameColor.setGreen(true);
|
||||
}
|
||||
|
||||
public Forest(final Forest land) {
|
||||
|
|
|
@ -15,7 +15,7 @@ import mage.cards.CardSetInfo;
|
|||
public class Island extends BasicLand {
|
||||
public Island(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new BlueManaAbility());
|
||||
this.frameColor = ObjectColor.BLUE;
|
||||
this.frameColor.setBlue(true);
|
||||
}
|
||||
|
||||
public Island(Island land) {
|
||||
|
|
|
@ -15,7 +15,7 @@ import mage.cards.CardSetInfo;
|
|||
public class Mountain extends BasicLand {
|
||||
public Mountain(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new RedManaAbility());
|
||||
this.frameColor = ObjectColor.RED;
|
||||
this.frameColor.setRed(true);
|
||||
}
|
||||
|
||||
public Mountain(Mountain land) {
|
||||
|
|
|
@ -15,7 +15,7 @@ import mage.cards.CardSetInfo;
|
|||
public class Plains extends BasicLand {
|
||||
public Plains(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new WhiteManaAbility());
|
||||
this.frameColor = ObjectColor.WHITE;
|
||||
this.frameColor.setWhite(true);
|
||||
}
|
||||
|
||||
public Plains(Plains land) {
|
||||
|
|
|
@ -15,7 +15,7 @@ import mage.cards.CardSetInfo;
|
|||
public class Swamp extends BasicLand {
|
||||
public Swamp(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new BlackManaAbility());
|
||||
this.frameColor = ObjectColor.BLACK;
|
||||
this.frameColor.setBlack(true);
|
||||
}
|
||||
|
||||
public Swamp(Swamp land) {
|
||||
|
|
|
@ -18,7 +18,7 @@ public final class DrakeToken extends TokenImpl {
|
|||
this.cardType.add(CardType.CREATURE);
|
||||
this.subtype.add(SubType.DRAKE);
|
||||
|
||||
this.color = ObjectColor.BLUE;
|
||||
this.color.setBlue(true);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ public final class ElfDruidToken extends TokenImpl {
|
|||
public ElfDruidToken(String setCode, int tokenType) {
|
||||
super("Elf Druid", "1/1 green Elf Druid creature token with \"{T}: Add {G}.\"");
|
||||
this.cardType.add(CardType.CREATURE);
|
||||
this.color = ObjectColor.GREEN;
|
||||
this.color.setGreen(true);
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.DRUID);
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ public final class KrakenHexproofToken extends TokenImpl {
|
|||
super("Kraken", "8/8 blue Kraken creature token with hexproof");
|
||||
this.cardType.add(CardType.CREATURE);
|
||||
this.subtype.add(SubType.KRAKEN);
|
||||
this.color = ObjectColor.BLUE;
|
||||
this.color.setBlue(true);
|
||||
this.power = new MageInt(8);
|
||||
this.toughness = new MageInt(8);
|
||||
this.addAbility(HexproofAbility.getInstance());
|
||||
|
@ -29,5 +29,4 @@ public final class KrakenHexproofToken extends TokenImpl {
|
|||
public KrakenHexproofToken copy() {
|
||||
return new KrakenHexproofToken(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public final class KrakenToken extends TokenImpl {
|
|||
super("Kraken", "8/8 blue Kraken creature token");
|
||||
this.cardType.add(CardType.CREATURE);
|
||||
this.subtype.add(SubType.KRAKEN);
|
||||
this.color = ObjectColor.BLUE;
|
||||
this.color.setBlue(true);
|
||||
this.power = new MageInt(8);
|
||||
this.toughness = new MageInt(8);
|
||||
}
|
||||
|
@ -27,5 +27,4 @@ public final class KrakenToken extends TokenImpl {
|
|||
public KrakenToken copy() {
|
||||
return new KrakenToken(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public final class MerfolkHexproofToken extends TokenImpl {
|
|||
super("Merfolk", "1/1 blue Merfolk creature token with hexproof");
|
||||
this.cardType.add(CardType.CREATURE);
|
||||
this.subtype.add(SubType.MERFOLK);
|
||||
this.color = ObjectColor.BLUE;
|
||||
this.color.setBlue(true);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
this.addAbility(HexproofAbility.getInstance());
|
||||
|
@ -30,5 +30,4 @@ public final class MerfolkHexproofToken extends TokenImpl {
|
|||
public MerfolkHexproofToken copy() {
|
||||
return new MerfolkHexproofToken(this);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ public final class RedHumanToken extends TokenImpl {
|
|||
this.cardType.add(CardType.CREATURE);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
|
||||
this.color = ObjectColor.RED;
|
||||
this.color.setRed(true);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ public final class ThatcherHumanToken extends TokenImpl {
|
|||
this.subtype.add(SubType.HUMAN);
|
||||
addAbility(HasteAbility.getInstance());
|
||||
|
||||
this.color = ObjectColor.RED;
|
||||
this.color.setRed(true);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public final class TitaniaProtectorOfArgothElementalToken extends TokenImpl {
|
|||
public TitaniaProtectorOfArgothElementalToken() {
|
||||
super("Elemental", "5/3 green Elemental creature token");
|
||||
this.cardType.add(CardType.CREATURE);
|
||||
this.color = ObjectColor.GREEN;
|
||||
this.color.setGreen(true);
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(3);
|
||||
|
|
Loading…
Reference in a new issue