mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
little fixes to the handling of buffedby and antibuffedby SVars.
This commit is contained in:
@@ -158,17 +158,17 @@ public class ComputerAI_General implements Computer {
|
||||
Card buffedcard = buffed.get(j);
|
||||
if (buffedcard.getSVar("BuffedBy").length() > 0) {
|
||||
String buffedby = buffedcard.getSVar("BuffedBy");
|
||||
final String bffdby[] = buffedby.split(",");
|
||||
String bffdby[] = buffedby.split(",");
|
||||
if (c.isValidCard(bffdby)) return true;
|
||||
}
|
||||
}//BuffedBy
|
||||
|
||||
CardList antibuffed = new CardList(AllZone.Human_Play.getCards()); //get all cards the computer controls with AntiBuffedBy
|
||||
CardList antibuffed = new CardList(AllZone.Human_Play.getCards()); //get all cards the human controls with AntiBuffedBy
|
||||
for(int k = 0; k < antibuffed.size(); k++) {
|
||||
Card buffedcard = antibuffed.get(k);
|
||||
if (buffedcard.getSVar("AntiBuffedBy").length() > 0) {
|
||||
String buffedby = buffedcard.getSVar("AntiBuffedBy");
|
||||
final String bffdby[] = buffedby.split(",");
|
||||
String bffdby[] = buffedby.split(",");
|
||||
if (c.isValidCard(bffdby)) return true;
|
||||
}
|
||||
}//AntiBuffedBy
|
||||
|
||||
Reference in New Issue
Block a user