mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Reimplemented "StackDescription$ SpellDescription".
This commit is contained in:
@@ -60,7 +60,9 @@ import forge.game.player.Player;
|
||||
// Own description
|
||||
String stackDesc = params.get("StackDescription");
|
||||
if (stackDesc != null) {
|
||||
if (!"None".equalsIgnoreCase(stackDesc)) { // by typing "none" they want to suppress output
|
||||
if ("SpellDescription".equalsIgnoreCase(stackDesc)) { // by typing "none" they want to suppress output
|
||||
sb.append(params.get("SpellDescription").replace("CARDNAME", sa.getSourceCard().getName()));
|
||||
} else if (!"None".equalsIgnoreCase(stackDesc)) { // by typing "none" they want to suppress output
|
||||
sb.append(stackDesc.replace("CARDNAME", sa.getSourceCard().getName()));
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -66,17 +66,6 @@ public class ChangeZoneEffect extends SpellEffect {
|
||||
}
|
||||
|
||||
sb.append(" ");
|
||||
|
||||
if (sa.hasParam("StackDescription")) {
|
||||
String stackDesc = sa.getParam("StackDescription");
|
||||
if (stackDesc.equals("None")) {
|
||||
// Intentionally blank to avoid double spaces, otherwise: sb.append("");
|
||||
} else if (stackDesc.equals("SpellDescription")) {
|
||||
sb.append(sa.getParam("SpellDescription"));
|
||||
} else {
|
||||
sb.append(stackDesc);
|
||||
}
|
||||
} else {
|
||||
String origin = "";
|
||||
if (sa.hasParam("Origin")) {
|
||||
origin = sa.getParam("Origin");
|
||||
@@ -150,7 +139,6 @@ public class ChangeZoneEffect extends SpellEffect {
|
||||
sb.append("Return ").append(num).append(" ").append(type).append(" card(s) ");
|
||||
sb.append(" to your ").append(destination);
|
||||
}
|
||||
}
|
||||
|
||||
final AbilitySub abSub = sa.getSubAbility();
|
||||
if (abSub != null) {
|
||||
|
||||
Reference in New Issue
Block a user