Commit b2867197 authored by mercury233's avatar mercury233 Committed by GitHub

update Duel.Overlay (#409)

parent 9e774a52
......@@ -3404,7 +3404,12 @@ int32 scriptlib::duel_overlay(lua_State *L) {
target->xyz_overlay(&cset);
} else
target->xyz_overlay(&pgroup->container);
target->pduel->game_field->adjust_all();
uint32 adjust = TRUE;
if(lua_gettop(L) > 2) {
adjust = lua_toboolean(L, 3);
}
if(adjust)
target->pduel->game_field->adjust_all();
return lua_yield(L, 0);
}
int32 scriptlib::duel_get_overlay_group(lua_State *L) {
......
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