mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Fix drawn card being revealed during ability resolve
This commit is contained in:
@@ -356,11 +356,9 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
||||
player.getManaPool().payManaFromAbility(saPaidFor, InputPayMana.this.manaCost, chosen);
|
||||
}
|
||||
onManaAbilityPaid();
|
||||
onStateChanged();
|
||||
} else {
|
||||
// Need to call this to unlock
|
||||
onStateChanged();
|
||||
}
|
||||
// Need to call this to unlock
|
||||
onStateChanged();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ public abstract class InputSyncronizedBase extends InputBase implements InputSyn
|
||||
}
|
||||
|
||||
protected final void stop() {
|
||||
onStop();
|
||||
|
||||
// ensure input won't accept any user actions.
|
||||
FThreads.invokeInEdtNowOrLater(new Runnable() {
|
||||
@Override
|
||||
@@ -44,8 +46,6 @@ public abstract class InputSyncronizedBase extends InputBase implements InputSyn
|
||||
}
|
||||
});
|
||||
|
||||
onStop();
|
||||
|
||||
// thread irrelevant
|
||||
if (getController().getInputQueue().getInput() != null) {
|
||||
getController().getInputQueue().removeInput(InputSyncronizedBase.this);
|
||||
|
||||
@@ -171,7 +171,7 @@ public class HumanPlaySpellAbility {
|
||||
manapool.restoreColorReplacements();
|
||||
human.decNumManaConversion();
|
||||
}
|
||||
game.clearTopLibsCast();
|
||||
game.clearTopLibsCast(ability);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ public class HumanPlaySpellAbility {
|
||||
manapool.restoreColorReplacements();
|
||||
}
|
||||
}
|
||||
game.clearTopLibsCast();
|
||||
game.clearTopLibsCast(ability);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user