mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Fix possible infinite loop in unfreeze stack.
- Fix regular games not updating UI.
This commit is contained in:
@@ -35,8 +35,9 @@ public class MagicStack extends MyObservable {
|
||||
public void unfreezeStack() {
|
||||
frozen = false;
|
||||
while (!frozenStack.isEmpty()) {
|
||||
this.add(frozenStack.get(0));
|
||||
SpellAbility sa = frozenStack.get(0);
|
||||
frozenStack.remove(0);
|
||||
this.add(sa);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@ public abstract class Player extends MyObservable{
|
||||
assignedDamage = 0;
|
||||
lastDrawnCard = null;
|
||||
bFirstTurn = true;
|
||||
this.updateObservers();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
|
||||
Reference in New Issue
Block a user