mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Added the option OverwriteColors to stAnimate.
- Added Thran Lens.
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -7196,6 +7196,7 @@ res/cardsfolder/thran_dynamo.txt -text svneol=native#text/plain
|
|||||||
res/cardsfolder/thran_forge.txt svneol=native#text/plain
|
res/cardsfolder/thran_forge.txt svneol=native#text/plain
|
||||||
res/cardsfolder/thran_foundry.txt -text svneol=native#text/plain
|
res/cardsfolder/thran_foundry.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/thran_golem.txt -text svneol=native#text/plain
|
res/cardsfolder/thran_golem.txt -text svneol=native#text/plain
|
||||||
|
res/cardsfolder/thran_lens.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/thran_quarry.txt -text svneol=native#text/plain
|
res/cardsfolder/thran_quarry.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/thran_war_machine.txt -text svneol=native#text/plain
|
res/cardsfolder/thran_war_machine.txt -text svneol=native#text/plain
|
||||||
res/cardsfolder/thrashing_mudspawn.txt -text svneol=native#text/plain
|
res/cardsfolder/thrashing_mudspawn.txt -text svneol=native#text/plain
|
||||||
|
|||||||
9
res/cardsfolder/thran_lens.txt
Normal file
9
res/cardsfolder/thran_lens.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Name:Thran Lens
|
||||||
|
ManaCost:2
|
||||||
|
Types:Artifact
|
||||||
|
Text:no text
|
||||||
|
K:stAnimateAll:Permanent:no changes:no types:Overwrite:No Abilities:No Condition:All permanents are colorless.
|
||||||
|
SVar:RemRandomDeck:True
|
||||||
|
SVar:Rarity:Rare
|
||||||
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/thran_lens.jpg
|
||||||
|
End
|
||||||
@@ -7376,6 +7376,12 @@ public class GameActionUtil {
|
|||||||
|
|
||||||
String colors = "";
|
String colors = "";
|
||||||
if(!k[4].equalsIgnoreCase("no colors")) {
|
if(!k[4].equalsIgnoreCase("no colors")) {
|
||||||
|
colors = k[4];
|
||||||
|
if(colors.contains(",Overwrite") || colors.contains("Overwrite")) {
|
||||||
|
colors.replace(",Overwrite","");
|
||||||
|
colors.replace("Overwrite","");
|
||||||
|
se.setOverwriteColors(true);
|
||||||
|
}
|
||||||
colors = CardUtil.getShortColorsString(new ArrayList<String>(Arrays.asList(k[4].split(","))));
|
colors = CardUtil.getShortColorsString(new ArrayList<String>(Arrays.asList(k[4].split(","))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7470,7 +7476,7 @@ public class GameActionUtil {
|
|||||||
//TODO - adding SpellAbilities statically here not supported at this time
|
//TODO - adding SpellAbilities statically here not supported at this time
|
||||||
}
|
}
|
||||||
|
|
||||||
long t = affectedCard.addColor(colors, affectedCard, true, true);
|
long t = affectedCard.addColor(colors, affectedCard, !se.isOverwriteColors(), true);
|
||||||
se.addTimestamp(affectedCard, t);
|
se.addTimestamp(affectedCard, t);
|
||||||
}//end for
|
}//end for
|
||||||
}
|
}
|
||||||
@@ -7538,7 +7544,7 @@ public class GameActionUtil {
|
|||||||
//TODO - adding SpellAbilities statically here not supported at this time
|
//TODO - adding SpellAbilities statically here not supported at this time
|
||||||
}
|
}
|
||||||
|
|
||||||
affectedCard.removeColor(se.getColorDesc(), affectedCard, true, se.getTimestamp(affectedCard));
|
affectedCard.removeColor(se.getColorDesc(), affectedCard, !se.isOverwriteColors(), se.getTimestamp(affectedCard));
|
||||||
}//end removeStaticEffects
|
}//end removeStaticEffects
|
||||||
|
|
||||||
// Special Conditions
|
// Special Conditions
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ public class StaticEffect {
|
|||||||
|
|
||||||
//for colors
|
//for colors
|
||||||
private String colorDesc = "";
|
private String colorDesc = "";
|
||||||
|
private boolean overwriteColors = false;
|
||||||
private HashMap<Card, Long> timestamps = new HashMap<Card, Long>();
|
private HashMap<Card, Long> timestamps = new HashMap<Card, Long>();
|
||||||
|
|
||||||
|
|
||||||
@@ -266,6 +267,15 @@ public class StaticEffect {
|
|||||||
public void setColorDesc(String colorDesc) {
|
public void setColorDesc(String colorDesc) {
|
||||||
this.colorDesc = colorDesc;
|
this.colorDesc = colorDesc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//overwrite color
|
||||||
|
public boolean isOverwriteColors() {
|
||||||
|
return overwriteColors;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOverwriteColors(boolean overwriteColors) {
|
||||||
|
this.overwriteColors = overwriteColors;
|
||||||
|
}
|
||||||
|
|
||||||
public HashMap<Card, Long> getTimestamps() {
|
public HashMap<Card, Long> getTimestamps() {
|
||||||
return timestamps;
|
return timestamps;
|
||||||
|
|||||||
Reference in New Issue
Block a user