Refactored clean_hand

This commit is contained in:
Connor Mills
2025-03-23 18:59:54 -07:00
parent b648b7c289
commit 6fa23989cd
2 changed files with 13 additions and 15 deletions

View File

@@ -39,3 +39,13 @@ end
function DV.PRE.enabled()
return G.SETTINGS.DV.preview_score or G.SETTINGS.DV.preview_dollars
end
function clean_hand(hand)
local clean_hand = {}
for _, v in pairs(hand) do
if v.get_id then -- Should work for all functions even if they don't use get_id because get_id is a meta function and the broken cards don't have meta values
table.insert(clean_hand, v)
end
end
return clean_hand
end