mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
* bugfix String replace
This commit is contained in:
@@ -12755,8 +12755,8 @@ public class GameActionUtil {
|
|||||||
int toughnessbonus = 0;
|
int toughnessbonus = 0;
|
||||||
String[] Keyword = Keyword_Details.split("/",3);
|
String[] Keyword = Keyword_Details.split("/",3);
|
||||||
|
|
||||||
Keyword[0].replace("+","");
|
Keyword[0] = Keyword[0].replace("+","");
|
||||||
Keyword[1].replace("+","");
|
Keyword[1] = Keyword[1].replace("+","");
|
||||||
|
|
||||||
if(!Keyword[0].contains("X")) powerbonus = Integer.valueOf(Keyword[0]);
|
if(!Keyword[0].contains("X")) powerbonus = Integer.valueOf(Keyword[0]);
|
||||||
else powerbonus = xValue; // the xCount takes places before
|
else powerbonus = xValue; // the xCount takes places before
|
||||||
@@ -12795,8 +12795,8 @@ public class GameActionUtil {
|
|||||||
int toughnessbonus = 0;
|
int toughnessbonus = 0;
|
||||||
String[] Keyword = Keyword_Details[2].split("/",3);
|
String[] Keyword = Keyword_Details[2].split("/",3);
|
||||||
|
|
||||||
Keyword[0].replace("+","");
|
Keyword[0] = Keyword[0].replace("+","");
|
||||||
Keyword[1].replace("+","");
|
Keyword[1] = Keyword[1].replace("+","");
|
||||||
|
|
||||||
if(!Keyword[0].contains("X")) powerbonus = Integer.valueOf(Keyword[0]);
|
if(!Keyword[0].contains("X")) powerbonus = Integer.valueOf(Keyword[0]);
|
||||||
else powerbonus = xValue;
|
else powerbonus = xValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user