mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Merge branch 'generated-stack-text' into 'master'
improve the generated stack text for Brainstorm Closes #350 See merge request core-developers/forge!303
This commit is contained in:
@@ -107,7 +107,7 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
|||||||
|
|
||||||
String fetchPlayer = fetcherNames;
|
String fetchPlayer = fetcherNames;
|
||||||
if (chooserNames.equals(fetcherNames)) {
|
if (chooserNames.equals(fetcherNames)) {
|
||||||
fetchPlayer = fetchers.size() > 1 ? "their" : "his/her";
|
fetchPlayer = "their";
|
||||||
}
|
}
|
||||||
|
|
||||||
String origin = "";
|
String origin = "";
|
||||||
@@ -179,8 +179,12 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
|||||||
sb.append(num).append(" of those ").append(type).append(" card(s)");
|
sb.append(num).append(" of those ").append(type).append(" card(s)");
|
||||||
} else {
|
} else {
|
||||||
sb.append(destination.equals("Exile") ? " exiles " : " puts ");
|
sb.append(destination.equals("Exile") ? " exiles " : " puts ");
|
||||||
sb.append(num).append(" ").append(type).append(" card(s) from");
|
if (type == "Card") {
|
||||||
sb.append(fetchPlayer).append(" hand");
|
sb.append(num);
|
||||||
|
} else {
|
||||||
|
sb.append(num).append(" ").append(type);
|
||||||
|
}
|
||||||
|
sb.append(" card(s) from ").append(fetchPlayer).append(" hand");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (destination.equals("Battlefield")) {
|
if (destination.equals("Battlefield")) {
|
||||||
@@ -202,7 +206,11 @@ public class ChangeZoneEffect extends SpellAbilityEffect {
|
|||||||
sb.append(" on the bottom");
|
sb.append(" on the bottom");
|
||||||
}
|
}
|
||||||
|
|
||||||
sb.append(" of ").append(fetchPlayer).append("'s library");
|
sb.append(" of ").append(fetchPlayer);
|
||||||
|
if (fetchPlayer != "their") {
|
||||||
|
sb.append("'s");
|
||||||
|
}
|
||||||
|
sb.append(" library");
|
||||||
}
|
}
|
||||||
|
|
||||||
sb.append(".");
|
sb.append(".");
|
||||||
|
|||||||
Reference in New Issue
Block a user