Commit 6c142772 authored by mercury233's avatar mercury233 Committed by DailyShana

fix (#84)

parent e57b048a
......@@ -202,7 +202,7 @@ int32 scriptlib::card_get_origin_level(lua_State *L) {
check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1);
if((pcard->data.type & TYPE_XYZ) || (pcard->status & STATUS_NO_LEVEL))
if((pcard->data.type & (TYPE_XYZ | TYPE_LINK)) || (pcard->status & STATUS_NO_LEVEL))
lua_pushinteger(L, 0);
else
lua_pushinteger(L, pcard->data.level);
......
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