mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28: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
|
@Override
|
||||||
protected void onOk() {
|
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
|
//use AI utility to automatically pay mana cost if possible
|
||||||
final Runnable proc = new Runnable() {
|
final Runnable proc = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user