|
|
|
|
@ -642,8 +642,14 @@ class ActionList(var listener: ActionListListener) : ArrayList<ComputedAction>() |
|
|
|
|
this.filter { it.action.position == positionIndex }.forEach { ca -> |
|
|
|
|
|
|
|
|
|
remainingStack?.let { rs -> |
|
|
|
|
|
|
|
|
|
if (ca.action.type?.isAllin == false) { |
|
|
|
|
remainingStack = rs - ca.action.effectiveAmount |
|
|
|
|
ca.playerRemainingStack = remainingStack |
|
|
|
|
} else { |
|
|
|
|
ca.setType(ca.action.type!!) // updates the action amount |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} ?: run { |
|
|
|
|
ca.playerRemainingStack = null |
|
|
|
|
} |
|
|
|
|
|