Commit 48a7e50b authored by Michael Kamensky's avatar Michael Kamensky

Merge branch 'fortifyFix' into 'master'

Fortify use :

See merge request core-developers/forge!864
parents f951e831 a72dfcac
......@@ -3819,24 +3819,15 @@ public class CardFactoryUtil {
} else if (keyword.startsWith("Fortify")) {
final String equipString = keyword.substring(7);
final String[] equipExtras = equipString.contains("|") ? equipString.split("\\|", 2) : null;
String[] k = keyword.split(":");
// Get cost string
String equipCost = "";
if (equipExtras != null) {
equipCost = equipExtras[0].trim();
} else {
equipCost = equipString.trim();
}
String equipCost = k[1];
// Create attach ability string
final StringBuilder abilityStr = new StringBuilder();
abilityStr.append("AB$ Attach | Cost$ ");
abilityStr.append(equipCost);
abilityStr.append(" | ValidTgts$ Land.YouCtrl | TgtPrompt$ Select target land you control ");
abilityStr.append("| SorcerySpeed$ True | AILogic$ Pump | IsPresent$ Fortification.Self+nonCreature ");
if (equipExtras != null) {
abilityStr.append("| ").append(equipExtras[1]).append(" ");
}
abilityStr.append("| PrecostDesc$ Fortify");
Cost cost = new Cost(equipCost, true);
abilityStr.append(cost.isOnlyManaCost() ? " " : "—");
......
Name:Darksteel Garrison
ManaCost:2
Types:Artifact Fortification
K:Fortify 3
K:Fortify:3
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.
SVar:TrigPump:DB$ Pump | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ 1 | NumDef$ 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment