Commit f25417da authored by nanahira's avatar nanahira

always allow custom cards

parent 39a001fc
......@@ -73,6 +73,8 @@ const std::unordered_map<int, int>* DeckManager::GetLFListContent(int lfhash) {
return nullptr;
}
static int checkAvail(int ot, int avail) {
if(!!(ot && 0x4))
return 0;
if((ot & avail) == avail)
return 0;
if((ot & AVAIL_OCG) && !(avail == AVAIL_OCG))
......
......@@ -857,10 +857,10 @@ extern Game* mainGame;
#define TEXTURE_ATTACK 5
#define TEXTURE_ACTIVATE 6
#define AVAIL_OCG 0x5
#define AVAIL_TCG 0x6
#define AVAIL_OCG 0x1
#define AVAIL_TCG 0x2
#define AVAIL_CUSTOM 0x4
#define AVAIL_SC 0xc
#define AVAIL_SC 0x8
#define AVAIL_OCGTCG (AVAIL_OCG|AVAIL_TCG)
#ifndef DEFAULT_DUEL_RULE
......
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