mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Fixed dynamic reminder text generation for KW Storm.
This commit is contained in:
@@ -1965,11 +1965,11 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
} else if (keyword.startsWith("Storm")) {
|
} else if (keyword.startsWith("Storm")) {
|
||||||
if (sb.toString().contains("Target") || sb.toString().contains("target")) {
|
if (sb.toString().contains("Target") || sb.toString().contains("target")) {
|
||||||
String stormDescBegin = "Storm (When you cast this spell, copy it for each spell cast before it this turn.";
|
String stormDescBegin = "Storm (When you cast this spell, copy it for each spell cast before it this turn.";
|
||||||
String stormDescEnd = " You may choose new targets for the copies.)";
|
String stormDescEnd = " You may choose new targets for the copies.";
|
||||||
if (sb.toString().contains(stormDescBegin)) {
|
if (sb.toString().contains(stormDescBegin)) {
|
||||||
sb.insert(sb.indexOf(stormDescBegin) + stormDescBegin.length() + 1, stormDescEnd);
|
sb.insert(sb.indexOf(stormDescBegin) + stormDescBegin.length(), stormDescEnd);
|
||||||
} else {
|
} else {
|
||||||
sb.append(stormDescBegin + stormDescEnd);
|
sb.append(stormDescBegin).append(stormDescEnd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (keyword.startsWith("Replicate") && !sb.toString().contains("you paid its replicate cost.")) {
|
} else if (keyword.startsWith("Replicate") && !sb.toString().contains("you paid its replicate cost.")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user