Commit a159e87e authored by nanahira's avatar nanahira

Merge branch 'master' of ../../versions/ygopro-mc/ocgcore

parents a8bebad9 14ebfd50
......@@ -568,8 +568,8 @@ inline effect_flag operator|(effect_flag flag1, effect_flag flag2)
#define EVENT_REMOVE_COUNTER 0x20000
#define EVENT_CUSTOM 0x10000000
#define DOUBLE_DAMAGE 0x80000000
#define HALF_DAMAGE 0x80000001
constexpr int32 DOUBLE_DAMAGE = 0x80000000;
constexpr int32 HALF_DAMAGE = 0x80000001;
// flag effect
#define EFFECT_FLAG_EFFECT 0x20000000
......
......@@ -420,6 +420,10 @@ int32 scriptlib::group_is_exists(lua_State *L) {
uint32 extraargs = lua_gettop(L) - 4;
uint32 fcount = 0;
uint32 result = FALSE;
if (count > pgroup->container.size()) {
lua_pushboolean(L, 0);
return 1;
}
for (auto& pcard : cset) {
if(pduel->lua->check_matching(pcard, 2, extraargs)) {
++fcount;
......@@ -722,11 +726,12 @@ int32 scriptlib::group_search_card(lua_State *L) {
group* pgroup = *(group**) lua_touserdata(L, 1);
duel* pduel = pgroup->pduel;
uint32 extraargs = lua_gettop(L) - 2;
for(auto& pcard : pgroup->container)
if(pduel->lua->check_matching(pcard, 2, extraargs)) {
for (auto& pcard : pgroup->container) {
if (pduel->lua->check_matching(pcard, 2, extraargs)) {
interpreter::card2value(L, pcard);
return 1;
}
}
return 0;
}
int32 scriptlib::group_get_bin_class_count(lua_State *L) {
......
This diff is collapsed.
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