*Tweaked the "with<keyword>" and "without<keyword>" part of hasProperty.

*Standardized the text display bit for Modular.
*Added Arcbound Overseer.
This commit is contained in:
jendave
2011-08-06 22:54:11 +00:00
parent fbb43496b0
commit 6f01e0f125
4 changed files with 24 additions and 12 deletions

1
.gitattributes vendored
View File

@@ -357,6 +357,7 @@ res/cardsfolder/arcbound_bruiser.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_crusher.txt -text svneol=native#text/plain res/cardsfolder/arcbound_crusher.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_hybrid.txt -text svneol=native#text/plain res/cardsfolder/arcbound_hybrid.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_lancer.txt -text svneol=native#text/plain res/cardsfolder/arcbound_lancer.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_overseer.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_ravager.txt -text svneol=native#text/plain res/cardsfolder/arcbound_ravager.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_reclaimer.txt -text svneol=native#text/plain res/cardsfolder/arcbound_reclaimer.txt -text svneol=native#text/plain
res/cardsfolder/arcbound_slith.txt -text svneol=native#text/plain res/cardsfolder/arcbound_slith.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,11 @@
Name:Arcbound Overseer
ManaCost:8
Types:Artifact Creature Golem
Text:no text
PT:0/0
K:Modular 6
T:Mode$ Phase | Phase$ Upkeep | TriggerZones$ Battlefield | ValidPlayer$ You | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, put a +1/+1 counter on each creature with modular you control.
SVar:TrigPutCounter:AB$PutCounterAll | Cost$ 0 | ValidCards$ Creature.YouCtrl+withModular | CounterType$ P1P1 | CounterNum$ 1
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/arcbound_overseer.jpg
End

View File

@@ -1005,6 +1005,13 @@ public class Card extends MyObservable {
sbLong.append(keyword.get(i)); sbLong.append(keyword.get(i));
sbLong.append(" (If an opponent was dealt damage this turn, this creature enters the battlefield with a +1/+1 counter on it.)"); sbLong.append(" (If an opponent was dealt damage this turn, this creature enters the battlefield with a +1/+1 counter on it.)");
} }
else if(keyword.get(i).startsWith("Modular")) {
String numCounters = keyword.get(i).split(" ")[1];
sbLong.append(keyword.get(i));
sbLong.append(" (This enters the battlefield with ");
sbLong.append(numCounters);
sbLong.append(" +1/+1 counters on it. When it's put into a graveyard, you may put its +1/+1 counters on target artifact creature.)");
}
else { else {
if (i != 0 && sb.length() != 0) sb.append(", "); if (i != 0 && sb.length() != 0) sb.append(", ");
sb.append(keyword.get(i).toString()); sb.append(keyword.get(i).toString());
@@ -2718,8 +2725,8 @@ public class Card extends MyObservable {
else if (Property.startsWith("with")) // ... Card keywords else if (Property.startsWith("with")) // ... Card keywords
{ {
if (Property.startsWith("without") && getKeyword().contains(Property.substring(7))) return false; if (Property.startsWith("without") && hasStartOfKeyword(Property.substring(7))) return false;
if (!Property.startsWith("without") && !getKeyword().contains(Property.substring(4))) return false; if (!Property.startsWith("without") && !hasStartOfKeyword(Property.substring(4))) return false;
} }
else if (Property.startsWith("tapped")) else if (Property.startsWith("tapped"))

View File

@@ -858,20 +858,13 @@ public class CardFactory implements NewConstants {
} }
}//Devour }//Devour
while(hasKeyword(card, "Modular") != -1) { if(hasKeyword(card, "Modular") != -1) {
int n = hasKeyword(card, "Modular"); int n = hasKeyword(card, "Modular");
if(n != -1) { if(n != -1) {
String parse = card.getKeyword().get(n).toString(); String parse = card.getKeyword().get(n).toString();
card.removeIntrinsicKeyword(parse);
final int m = Integer.parseInt(parse.substring(8)); final int m = Integer.parseInt(parse.substring(8));
String t = card.getSpellText();
if(!t.equals("")) t += "\r\n";
card.setText(t
+ parse
+ " (This enters the battlefield with "
+ m
+ " +1/+1 counters on it. When it's put into a graveyard, you may put its +1/+1 counters on target artifact creature.)");//Erm help? Isn't there a normal way to do this?...
card.addComesIntoPlayCommand(new Command() { card.addComesIntoPlayCommand(new Command() {
private static final long serialVersionUID = 339412525059881775L; private static final long serialVersionUID = 339412525059881775L;