mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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,7 +52,7 @@ 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() ) {
|
||||
if (saPaidFor.isSpell()) {
|
||||
msg.append(saPaidFor.getStackDescription().replace("(Targeting ERROR)", ""));
|
||||
} else {
|
||||
msg.append(saPaidFor.getHostCard()).append(" - ").append(saPaidFor.toString());
|
||||
|
||||
@@ -51,12 +51,16 @@ public final class InputSelectTargets extends InputSyncronizedBase {
|
||||
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");
|
||||
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