Prevent AI taking over from double-clicking Auto button

This commit is contained in:
drdev
2015-04-23 03:09:44 +00:00
parent 0960bcca4c
commit 1f7c8d3a50

View File

@@ -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