Commit 157cb50e authored by nanahira's avatar nanahira

fix

parent 3503baea
...@@ -20,16 +20,6 @@ int32 scriptlib::effect_set_owner(lua_State *L) { ...@@ -20,16 +20,6 @@ int32 scriptlib::effect_set_owner(lua_State *L) {
peffect->owner = pcard; peffect->owner = pcard;
return 0; return 0;
} }
int32 scriptlib::effect_get_range(lua_State *L) {
check_param_count(L, 1);
check_param(L, PARAM_TYPE_EFFECT, 1);
effect* peffect = *(effect**) lua_touserdata(L, 1);
if (peffect) {
lua_pushinteger(L, peffect->range);
return 1;
}
return 0;
}
int32 scriptlib::effect_get_count_limit(lua_State *L) { int32 scriptlib::effect_get_count_limit(lua_State *L) {
check_param_count(L, 1); check_param_count(L, 1);
check_param(L, PARAM_TYPE_EFFECT, 1); check_param(L, PARAM_TYPE_EFFECT, 1);
...@@ -643,7 +633,6 @@ int32 scriptlib::effect_use_count_limit(lua_State *L) { ...@@ -643,7 +633,6 @@ int32 scriptlib::effect_use_count_limit(lua_State *L) {
static const struct luaL_Reg effectlib[] = { static const struct luaL_Reg effectlib[] = {
{ "SetOwner", scriptlib::effect_set_owner }, { "SetOwner", scriptlib::effect_set_owner },
{ "GetRange", scriptlib::effect_get_range },
{ "GetCountLimit", scriptlib::effect_get_count_limit }, { "GetCountLimit", scriptlib::effect_get_count_limit },
{ "CreateEffect", scriptlib::effect_new }, { "CreateEffect", scriptlib::effect_new },
......
...@@ -37,7 +37,6 @@ public: ...@@ -37,7 +37,6 @@ public:
static int32 card_is_xyz_summonable_by_rose(lua_State *L); static int32 card_is_xyz_summonable_by_rose(lua_State *L);
static int32 card_get_removed_overlay_count(lua_State *L); static int32 card_get_removed_overlay_count(lua_State *L);
static int32 effect_set_owner(lua_State *L); static int32 effect_set_owner(lua_State *L);
static int32 effect_get_range(lua_State *L);
static int32 effect_get_count_limit(lua_State *L); static int32 effect_get_count_limit(lua_State *L);
static int32 duel_get_master_rule(lua_State *L); static int32 duel_get_master_rule(lua_State *L);
static int32 duel_read_card(lua_State *L); static int32 duel_read_card(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