mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
- Temporarily reverting a change to the way ordering SAs is handled (breaks auto-yield) and improved my original change a bit to fix its logic, feel free to revert this to continue work on this project.
This commit is contained in:
@@ -1200,9 +1200,16 @@ public class PlayerControllerHuman
|
||||
final String firstStr = orderedSAs.get(0).toString();
|
||||
boolean needPrompt = false;
|
||||
String saLookupKey = firstStr;
|
||||
if (orderedSAs.get(0).getHostCard() != null) {
|
||||
saLookupKey += " - " + orderedSAs.get(0).getHostCard().getId();
|
||||
}
|
||||
char delim = (char)5;
|
||||
for (int i = 1; i < orderedSAs.size(); i++) {
|
||||
final String saStr = orderedSAs.get(i).toString();
|
||||
SpellAbility currentSa = orderedSAs.get(i);
|
||||
String saStr = currentSa.toString();
|
||||
if (currentSa.getHostCard() != null) {
|
||||
saStr += " - " + currentSa.getHostCard().getId();
|
||||
}
|
||||
if (!needPrompt && !saStr.equals(firstStr)) {
|
||||
needPrompt = true; //prompt by default unless all abilities are the same
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user