mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Trying to sacrifice Engineered Explosives with one counter on it I had a crash
This commit is contained in:
@@ -681,8 +681,8 @@ public class AbilityUtils {
|
|||||||
if (eqIndex >= 0) {
|
if (eqIndex >= 0) {
|
||||||
char reference = valid.charAt(eqIndex + 2); // take whatever goes after EQ
|
char reference = valid.charAt(eqIndex + 2); // take whatever goes after EQ
|
||||||
if( Character.isLetter(reference)) {
|
if( Character.isLetter(reference)) {
|
||||||
String varName = valid.substring(eqIndex + 2, 1);
|
String varName = valid.substring(eqIndex + 2, eqIndex + 3);
|
||||||
valid = valid.replace(varName, Integer.toString(calculateAmount(source, varName, sa)));
|
valid = valid.replace("EQ" + varName, "EQ" + Integer.toString(calculateAmount(source, varName, sa)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return CardLists.getValidCards(list, valid.split(","), sa.getActivatingPlayer(), source);
|
return CardLists.getValidCards(list, valid.split(","), sa.getActivatingPlayer(), source);
|
||||||
|
|||||||
Reference in New Issue
Block a user