forked from External/mage
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue