Commit 177d8459 authored by mercury233's avatar mercury233
parents 548e2a9b 6791324c
...@@ -636,7 +636,7 @@ int32 scriptlib::card_get_text_defense(lua_State *L) { ...@@ -636,7 +636,7 @@ int32 scriptlib::card_get_text_defense(lua_State *L) {
check_param_count(L, 1); check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 1); check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**) lua_touserdata(L, 1); card* pcard = *(card**) lua_touserdata(L, 1);
if(pcard->status & STATUS_NO_LEVEL) if((pcard->data.type & TYPE_LINK) || (pcard->status & STATUS_NO_LEVEL))
lua_pushinteger(L, 0); lua_pushinteger(L, 0);
else else
lua_pushinteger(L, pcard->data.defense); lua_pushinteger(L, pcard->data.defense);
......
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