Commit 42a5485b authored by nanahira's avatar nanahira

Merge branch 'master' of https://github.com/purerosefallen/ygopro-222DIY into 2p

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