- Bugfix for spBounceTgt: Removed Drawback$ from the Drawback$ string which caused any spBounceTgt spell to draw X cards along with it's normal Drawback ability.

This commit is contained in:
jendave
2011-08-06 07:13:50 +00:00
parent cfe1b08d36
commit 6a9f8175df

View File

@@ -625,7 +625,6 @@ public class CardFactory implements NewConstants {
}); });
} }
// Support for using string variables to define Count$ for X or Y // Support for using string variables to define Count$ for X or Y
// Or just about any other String that a card object needs at any given time // Or just about any other String that a card object needs at any given time
while(hasKeyword(card, "SVar") != -1) { while(hasKeyword(card, "SVar") != -1) {
@@ -3087,8 +3086,10 @@ public class CardFactory implements NewConstants {
final String Drawback[] = {"none"}; final String Drawback[] = {"none"};
if (k.length > 3) if (k.length > 3)
{ {
if (k[3].contains("Drawback$")) if (k[3].contains("Drawback$")){
Drawback[0] = k[3]; String kk[] = k[3].split("\\$");
Drawback[0] = kk[1];
}
} }
final String Selec[] = {"Select a target "}; final String Selec[] = {"Select a target "};