Commit 50e27734 authored by nanahira's avatar nanahira

only one and 3 side

parent 068c1c46
Pipeline #18655 passed with stages
in 2 minutes and 7 seconds
......@@ -113,7 +113,7 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
int code = cit->second.alias ? cit->second.alias : cit->first;
ccount[code]++;
dc = ccount[code];
if(dc > 3)
if(dc > 1)
return (DECKERROR_CARDCOUNT << 28) + cit->first;
auto it = list->find(code);
if(it != list->end() && dc > it->second)
......@@ -127,7 +127,7 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
int code = cit->second.alias ? cit->second.alias : cit->first;
ccount[code]++;
dc = ccount[code];
if(dc > 3)
if(dc > 1)
return (DECKERROR_CARDCOUNT << 28) + cit->first;
auto it = list->find(code);
if(it != list->end() && dc > it->second)
......@@ -141,7 +141,7 @@ int DeckManager::CheckDeck(Deck& deck, int lfhash, int rule) {
int code = cit->second.alias ? cit->second.alias : cit->first;
ccount[code]++;
dc = ccount[code];
if(dc > 3)
if(dc > 1)
return (DECKERROR_CARDCOUNT << 28) + cit->first;
auto it = list->find(code);
if(it != list->end() && dc > it->second)
......
......@@ -903,7 +903,7 @@ extern unsigned int pre_seed[3];
#endif
#ifndef YGOPRO_MAX_SIDE
#define YGOPRO_MAX_SIDE 2
#define YGOPRO_MAX_SIDE 3
#endif
#define CARD_ARTWORK_VERSIONS_OFFSET 10
......
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