* bugfix String replace

This commit is contained in:
jendave
2011-08-06 12:15:14 +00:00
parent 9ca687792f
commit 5b5b1d8074

View File

@@ -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;