Commit 4aaf5645 authored by nekrozar's avatar nekrozar Committed by mercury233

update (#137)

parent 8ffc4947
...@@ -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_tointeger(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