Commit e3992f78 authored by SherryChaos's avatar SherryChaos

fix SelectSum ui bug

parent 684dff98
...@@ -135,7 +135,7 @@ namespace MDPro3.UI ...@@ -135,7 +135,7 @@ namespace MDPro3.UI
foreach (var mono in monos) foreach (var mono in monos)
if (!mono.selected) if (!mono.selected)
if (OcgCore.CheckSelectable(Program.I().ocgcore.cardsInSelection, mono.card, selected, max)) if (OcgCore.CheckSelectable(Program.I().ocgcore.cardsInSelection, mono.card, selected, max + core.cardsMustBeSelected.Count))
mono.SelectableThis(); mono.SelectableThis();
else else
mono.UnselectableThis(); mono.UnselectableThis();
......
...@@ -210,7 +210,7 @@ namespace MDPro3.UI ...@@ -210,7 +210,7 @@ namespace MDPro3.UI
void UnselectThis() void UnselectThis()
{ {
if (!selected) return; if (!selected || unselectable) return;
selected = false; selected = false;
manager.selectedCount--; manager.selectedCount--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment