Commit e3992f78 authored by SherryChaos's avatar SherryChaos

fix SelectSum ui bug

parent 684dff98
......@@ -135,7 +135,7 @@ namespace MDPro3.UI
foreach (var mono in monos)
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();
else
mono.UnselectableThis();
......
......@@ -210,7 +210,7 @@ namespace MDPro3.UI
void UnselectThis()
{
if (!selected) return;
if (!selected || unselectable) return;
selected = false;
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