Commit 155829a9 authored by salix5's avatar salix5

fix function index

parent 46864da1
......@@ -2647,7 +2647,7 @@ int32 scriptlib::duel_get_release_group_count(lua_State *L) {
if (lua_gettop(L) >= 3)
reason = (uint32)lua_tointeger(L, 3);
duel* pduel = interpreter::get_duel_info(L);
lua_pushinteger(L, pduel->game_field->get_release_list(playerid, 0, 0, 0, FALSE, hand, 0, 0, nullptr, nullptr, reason));
lua_pushinteger(L, pduel->game_field->get_release_list(playerid, nullptr, nullptr, FALSE, FALSE, hand, 0, 0, nullptr, nullptr, reason));
return 1;
}
int32 scriptlib::duel_check_release_group(lua_State *L) {
......@@ -2671,7 +2671,7 @@ int32 scriptlib::duel_check_release_group(lua_State *L) {
pexgroup = *(group**) lua_touserdata(L, 5);
uint32 extraargs = lua_gettop(L) - must_param;
duel* pduel = interpreter::get_duel_info(L);
int32 result = pduel->game_field->check_release_list(playerid, fcount, use_con, FALSE, 2, extraargs, pexception, pexgroup, reason);
int32 result = pduel->game_field->check_release_list(playerid, fcount, use_con, FALSE, 3, extraargs, pexception, pexgroup, reason);
pduel->game_field->core.must_select_cards.clear();
lua_pushboolean(L, result);
return 1;
......@@ -2734,7 +2734,7 @@ int32 scriptlib::duel_check_release_group_ex(lua_State *L) {
pexgroup = *(group**) lua_touserdata(L, 5);
uint32 extraargs = lua_gettop(L) - must_param;
duel* pduel = interpreter::get_duel_info(L);
int32 result = pduel->game_field->check_release_list(playerid, fcount, use_con, TRUE, 2, extraargs, pexception, pexgroup, reason);
int32 result = pduel->game_field->check_release_list(playerid, fcount, use_con, TRUE, 3, extraargs, pexception, pexgroup, reason);
pduel->game_field->core.must_select_cards.clear();
lua_pushboolean(L, result);
return 1;
......
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