-
-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split card handling added to cmc filter #3090
Split card handling added to cmc filter #3090
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super clean. You are on fire @Vafthrudnir !
Thanks @Daenyth ! |
cockatrice/src/filtertree.cpp
Outdated
// if conversion failed, check for the "//" separator used in split cards | ||
if (!convertSuccess) { | ||
int cmcSum = 0; | ||
foreach (QString cmc, info->getCmc().split("//")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you change this to for (QString cmc : info->getCMC().split("//")) {
? I'm trying to remove the foreach from the codebase as it's not proper C++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should see if we can add a custom lint rule to codacy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great!
Good that you mention something like that, I guess we were not aware of that as of now. Thanks :) |
Related Ticket(s)
Short roundup of the initial problem
CMC filter didn't work on split cards in the deck builder
Screenshots