Commit 3823c71e authored by fallenstardust's avatar fallenstardust

sync ocgcore

parent 6a3603b4
......@@ -10,7 +10,7 @@
#include "common.h"
#ifdef WIN32
#ifdef _WIN32
#define DECL_DLLEXPORT __declspec(dllexport)
#else
#define DECL_DLLEXPORT
......
......@@ -1299,9 +1299,9 @@ int32_t field::trap_monster_adjust(uint16_t step) {
if(fcount <= 0) {
for(auto& pcard : core.trap_monster_adjust_set[check_player]) {
to_grave_set->insert(pcard);
core.units.begin()->step = 2;
}
core.trap_monster_adjust_set[check_player].clear();
core.units.begin()->step = 2;
} else if((int32_t)core.trap_monster_adjust_set[check_player].size() > fcount) {
uint32_t ct = (uint32_t)core.trap_monster_adjust_set[check_player].size() - fcount;
core.select_cards.clear();
......
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