mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- Logic correction in orderAndPlaySimultaneousSa (by pfps).
This commit is contained in:
@@ -1238,8 +1238,8 @@ public class PlayerControllerHuman
|
|||||||
orderedSAs = getGui().order("Select order for simultaneous abilities", "Resolve first", activePlayerSAs, null);
|
orderedSAs = getGui().order("Select order for simultaneous abilities", "Resolve first", activePlayerSAs, null);
|
||||||
//save order to avoid needing to prompt a second time to order the same abilties
|
//save order to avoid needing to prompt a second time to order the same abilties
|
||||||
savedOrder = new ArrayList<Integer>(activePlayerSAs.size());
|
savedOrder = new ArrayList<Integer>(activePlayerSAs.size());
|
||||||
for (SpellAbility sa : activePlayerSAs) {
|
for (SpellAbility sa : orderedSAs) {
|
||||||
savedOrder.add(orderedSAs.indexOf(sa));
|
savedOrder.add(activePlayerSAs.indexOf(sa));
|
||||||
}
|
}
|
||||||
orderedSALookup.put(saLookupKey, savedOrder);
|
orderedSALookup.put(saLookupKey, savedOrder);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user