mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Prevent AI taking over from double-clicking Auto button
This commit is contained in:
@@ -362,7 +362,8 @@ public abstract class InputPayMana extends InputSyncronizedBase {
|
||||
|
||||
@Override
|
||||
protected void onOk() {
|
||||
if (supportAutoPay()) {
|
||||
if (supportAutoPay() && !locked) { //prevent AI taking over from double-clicking Auto
|
||||
locked = true;
|
||||
//use AI utility to automatically pay mana cost if possible
|
||||
final Runnable proc = new Runnable() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user