mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Ensure that (Targeting ERROR) is removed from the prompt window when showing the SA text when selecting targets.
- Some code formatting.
This commit is contained in:
@@ -52,11 +52,11 @@ public class InputPayManaOfCostPayment extends InputPayMana {
|
||||
}
|
||||
if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_DETAILED_SPELLDESC_IN_PROMPT)) {
|
||||
// msg.append(saPaidFor.getStackDescription().replace("(Targeting ERROR)", ""));
|
||||
if ( saPaidFor.isSpell() ) {
|
||||
msg.append(saPaidFor.getStackDescription().replace("(Targeting ERROR)", ""));
|
||||
} else {
|
||||
msg.append(saPaidFor.getHostCard()).append(" - ").append(saPaidFor.toString());
|
||||
}
|
||||
if (saPaidFor.isSpell()) {
|
||||
msg.append(saPaidFor.getStackDescription().replace("(Targeting ERROR)", ""));
|
||||
} else {
|
||||
msg.append(saPaidFor.getHostCard()).append(" - ").append(saPaidFor.toString());
|
||||
}
|
||||
}
|
||||
msg.append("\n").append("Pay Mana Cost: ").append(displayMana);
|
||||
if (this.phyLifeToLose > 0) {
|
||||
|
||||
@@ -50,13 +50,17 @@ public final class InputSelectTargets extends InputSyncronizedBase {
|
||||
getController().getGui().setCard(CardView.get(sa.getHostCard()));
|
||||
final StringBuilder sb = new StringBuilder();
|
||||
if (FModel.getPreferences().getPrefBoolean(ForgePreferences.FPref.UI_DETAILED_SPELLDESC_IN_PROMPT)) {
|
||||
// sb.append(sa.getStackDescription().replace("(Targeting ERROR)", "")).append("\n<b>").append(tgt.getVTSelection()).append("</b>\n");
|
||||
if ( sa.isAbility() ) { sb.append(sa.getHostCard()).append(" - " ); }
|
||||
sb.append(sa.toString()).append("\n<b>").append(tgt.getVTSelection()).append("</b>\n");
|
||||
// sb.append(sa.getStackDescription().replace("(Targeting ERROR)", "")).append("\n<b>").append(tgt.getVTSelection()).append("</b>\n");
|
||||
if (sa.isAbility()) {
|
||||
sb.append(sa.getHostCard()).append(" - ");
|
||||
}
|
||||
sb.append(sa.toString().replace("(Targeting ERROR)", "")).append("\n<b>").append(tgt.getVTSelection()).append("</b>\n");
|
||||
} else {
|
||||
sb.append(sa.getHostCard()).append(" - ").append(tgt.getVTSelection()).append("\n");
|
||||
}
|
||||
if ( ! targetDepth.entrySet().isEmpty() ) { sb.append("Targeted:\n"); }
|
||||
if (!targetDepth.entrySet().isEmpty()) {
|
||||
sb.append("Targeted:\n");
|
||||
}
|
||||
for (final Entry<GameEntity, Integer> o : targetDepth.entrySet()) {
|
||||
sb.append(o.getKey());
|
||||
if (o.getValue() > 1) {
|
||||
|
||||
Reference in New Issue
Block a user