Commit 7e38079c authored by nanahira's avatar nanahira

add skip credit when no entry

parent b9f5dfeb
Pipeline #42019 passed with stages
in 24 minutes and 48 seconds
......@@ -1960,6 +1960,11 @@ bool DeckBuilder::check_limit(code_pointer pointer) {
if(limit < 0)
return false;
}
// No entry in credits => skip every card credit check
if(filterList->credits.find(limitcode) == filterList->credits.end())
return true;
auto code = card->second.alias ? card->second.alias : card->first;
return spend_credit(code);
};
......
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