Commit 061de1b1 authored by Momobako's avatar Momobako

update_core

parent e66dffe1
...@@ -1730,6 +1730,8 @@ int32 scriptlib::duel_get_location_count_fromex(lua_State *L) { ...@@ -1730,6 +1730,8 @@ int32 scriptlib::duel_get_location_count_fromex(lua_State *L) {
scard = *(card**)lua_touserdata(L, 4); scard = *(card**)lua_touserdata(L, 4);
} }
uint32 zone = 0xff; uint32 zone = 0xff;
if(lua_gettop(L) >= 5)
zone = lua_tonumberint(L, 5);
if(pduel->game_field->core.duel_rule >= 4) if(pduel->game_field->core.duel_rule >= 4)
lua_pushinteger(L, pduel->game_field->get_useable_count_fromex(scard, playerid, uplayer, zone)); lua_pushinteger(L, pduel->game_field->get_useable_count_fromex(scard, playerid, uplayer, zone));
else else
......
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