Commit 1f68d428 authored by DailyShana's avatar DailyShana

fix

parent 5dd0f9f7
...@@ -2030,6 +2030,8 @@ int32 scriptlib::card_check_fusion_material(lua_State *L) { ...@@ -2030,6 +2030,8 @@ int32 scriptlib::card_check_fusion_material(lua_State *L) {
} }
int32 scriptlib::card_check_fusion_substitute(lua_State *L) { int32 scriptlib::card_check_fusion_substitute(lua_State *L) {
check_param_count(L, 2); check_param_count(L, 2);
check_param(L, PARAM_TYPE_CARD, 1);
check_param(L, PARAM_TYPE_CARD, 2);
card* pcard = *(card**) lua_touserdata(L, 1); card* pcard = *(card**) lua_touserdata(L, 1);
card* fcard = *(card**) lua_touserdata(L, 2); card* fcard = *(card**) lua_touserdata(L, 2);
lua_pushboolean(L, pcard->check_fusion_substitute(fcard)); lua_pushboolean(L, pcard->check_fusion_substitute(fcard));
......
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