mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08: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));
|
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
|
String[] refRules = refText.split("[\\$\\\n]"); // ref card's abilities can be splited by \n or $ chars
|
||||||
for (int i = 0; i < refRules.length; i++) {
|
for (int i = 0; i < refRules.length; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue