- Fixed generation of Storm description (fixes e.g. Astral Steel and friends crashing).

This commit is contained in:
Agetian
2016-12-14 04:37:49 +00:00
parent f32fe2d130
commit 8e8bc627ef

View File

@@ -1887,9 +1887,13 @@ public class Card extends GameEntity implements Comparable<Card> {
.append(".\r\n");
} else if (keyword.startsWith("Storm")) {
if (sb.toString().contains("Target") || sb.toString().contains("target")) {
if (sb.toString().contains("Storm (When you cast this spell, copy it for each spell cast before it this turn.")) {
sb.insert(
sb.indexOf("Storm (When you cast this spell, copy it for each spell cast before it this turn.") + 81,
" You may choose new targets for the copies.");
} else {
sb.append("Storm (When you cast this spell, copy it for each spell cast before it this turn. You may choose new targets for the copies.");
}
}
} else if (keyword.startsWith("Replicate") && !sb.toString().contains("you paid its replicate cost.")) {
if (sb.toString().endsWith("\r\n\r\n")) {