WagicProject / wagic

Wagic the Homebrew
Other
354 stars 81 forks source link

Problem with Colorless mana ability filter and auto={T}:Add{c} #1090

Closed EduardoMunozGomez closed 1 year ago

EduardoMunozGomez commented 1 year ago

Describe the bug In Deck Editor -> Add filter -> Mana Ability -> Select Colorless mana ability and apply the filter It shows cards with the code auto={T}:Add{1} but it doesn't show newer cards that are coded with auto={T}:Add{c}

So cards like the following are not included in the filter:

[card] name=Animal Sanctuary auto={T}:add{C} auto={2}{T}:counter(1/1) target(creature[bird;cat;dog;goat;ox;snake]) text={T}: Add {C}. -- {2}, {T}: Put a +1/+1 counter on target Bird, Cat, Dog, Goat, Ox, or Snake. type=Land [/card]

Vitty85 commented 1 year ago

I will take a look.

Vitty85 commented 1 year ago

I solved in WFilter.cpp, now the filter consider {c} and {1} as the same by an inline chars replace during match of mana colors

Vitty85 commented 1 year ago

Solved with last commit.