mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Fortify use :
This commit is contained in:
@@ -3819,24 +3819,15 @@ public class CardFactoryUtil {
|
|||||||
|
|
||||||
|
|
||||||
} else if (keyword.startsWith("Fortify")) {
|
} else if (keyword.startsWith("Fortify")) {
|
||||||
final String equipString = keyword.substring(7);
|
String[] k = keyword.split(":");
|
||||||
final String[] equipExtras = equipString.contains("|") ? equipString.split("\\|", 2) : null;
|
|
||||||
// Get cost string
|
// Get cost string
|
||||||
String equipCost = "";
|
String equipCost = k[1];
|
||||||
if (equipExtras != null) {
|
|
||||||
equipCost = equipExtras[0].trim();
|
|
||||||
} else {
|
|
||||||
equipCost = equipString.trim();
|
|
||||||
}
|
|
||||||
// Create attach ability string
|
// Create attach ability string
|
||||||
final StringBuilder abilityStr = new StringBuilder();
|
final StringBuilder abilityStr = new StringBuilder();
|
||||||
abilityStr.append("AB$ Attach | Cost$ ");
|
abilityStr.append("AB$ Attach | Cost$ ");
|
||||||
abilityStr.append(equipCost);
|
abilityStr.append(equipCost);
|
||||||
abilityStr.append(" | ValidTgts$ Land.YouCtrl | TgtPrompt$ Select target land you control ");
|
abilityStr.append(" | ValidTgts$ Land.YouCtrl | TgtPrompt$ Select target land you control ");
|
||||||
abilityStr.append("| SorcerySpeed$ True | AILogic$ Pump | IsPresent$ Fortification.Self+nonCreature ");
|
abilityStr.append("| SorcerySpeed$ True | AILogic$ Pump | IsPresent$ Fortification.Self+nonCreature ");
|
||||||
if (equipExtras != null) {
|
|
||||||
abilityStr.append("| ").append(equipExtras[1]).append(" ");
|
|
||||||
}
|
|
||||||
abilityStr.append("| PrecostDesc$ Fortify");
|
abilityStr.append("| PrecostDesc$ Fortify");
|
||||||
Cost cost = new Cost(equipCost, true);
|
Cost cost = new Cost(equipCost, true);
|
||||||
abilityStr.append(cost.isOnlyManaCost() ? " " : "—");
|
abilityStr.append(cost.isOnlyManaCost() ? " " : "—");
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Name:Darksteel Garrison
|
Name:Darksteel Garrison
|
||||||
ManaCost:2
|
ManaCost:2
|
||||||
Types:Artifact Fortification
|
Types:Artifact Fortification
|
||||||
K:Fortify 3
|
K:Fortify:3
|
||||||
S:Mode$ Continuous | Affected$ Land.FortifiedBy | AddKeyword$ Indestructible | Description$ Fortified land has indestructible.
|
S:Mode$ Continuous | Affected$ Land.FortifiedBy | AddKeyword$ Indestructible | Description$ Fortified land has indestructible.
|
||||||
T:Mode$ Taps | ValidCard$ Land.FortifiedBy | Execute$ TrigPump | TriggerDescription$ Whenever fortified land becomes tapped, target creature gets +1/+1 until end of turn.
|
T:Mode$ Taps | ValidCard$ Land.FortifiedBy | Execute$ TrigPump | TriggerDescription$ Whenever fortified land becomes tapped, target creature gets +1/+1 until end of turn.
|
||||||
SVar:TrigPump:DB$ Pump | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ 1 | NumDef$ 1
|
SVar:TrigPump:DB$ Pump | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ 1 | NumDef$ 1
|
||||||
|
|||||||
Reference in New Issue
Block a user