mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
updated verify check to handle modal spells correctly
This commit is contained in:
parent
5187636672
commit
9ab01e5512
1 changed files with 9 additions and 0 deletions
|
@ -1463,6 +1463,15 @@ public class VerifyCardDataTest {
|
|||
refText = refText.replace(s, replacement.substring(1));
|
||||
}
|
||||
}
|
||||
// modal spell fix
|
||||
if (refText.contains("•")) {
|
||||
refText = refText
|
||||
.replace("—\n•", " —\n•")
|
||||
.replace(" —", " —")
|
||||
.replace("—\n•", "-<br>&bull ")
|
||||
.replace("\n•", "<br>&bull ");
|
||||
refText += "<br>";
|
||||
}
|
||||
|
||||
String[] refRules = refText.split("[\\$\\\n]"); // ref card's abilities can be splited by \n or $ chars
|
||||
for (int i = 0; i < refRules.length; i++) {
|
||||
|
|
Loading…
Reference in a new issue