|
|
|
@ -139,7 +139,7 @@ class ComputedAction(var manager: ActionManager, |
|
|
|
|
|
|
|
|
|
|
|
val oldAmount = this.action.amount |
|
|
|
val oldAmount = this.action.amount |
|
|
|
val remainingStack = this.stackBeforeActing |
|
|
|
val remainingStack = this.stackBeforeActing |
|
|
|
if (oldAmount != null && remainingStack != null) { |
|
|
|
if (oldAmount != null && remainingStack != null && remainingStack > correctedAmount) { |
|
|
|
this.action.toggleType(remainingStack) |
|
|
|
this.action.toggleType(remainingStack) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.action.amount = correctedAmount |
|
|
|
this.action.amount = correctedAmount |
|
|
|
|