mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Added a small section to card.getText(). This will display "CARDNAME can't be countered." in the text panel for Obliterate.
This commit is contained in:
@@ -573,6 +573,12 @@ public class Card extends MyObservable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CARDNAME can't be countered.
|
||||||
|
if (getKeyword().contains("CARDNAME can't be countered.") && !sb.toString().contains("CARDNAME can't be countered.")) {
|
||||||
|
if (sb.toString().endsWith(".") && !sb.toString().endsWith("\r\n")) sb.append("\r\n");
|
||||||
|
sb.append("CARDNAME can't be countered.\r\n");
|
||||||
|
}
|
||||||
|
|
||||||
// Cascade
|
// Cascade
|
||||||
if (getKeyword().contains("Cascade") && !sb.toString().contains("Cascade")) {
|
if (getKeyword().contains("Cascade") && !sb.toString().contains("Cascade")) {
|
||||||
if (sb.toString().endsWith(".") && !sb.toString().endsWith("\r\n")) sb.append("\r\n");
|
if (sb.toString().endsWith(".") && !sb.toString().endsWith("\r\n")) sb.append("\r\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user