Commit 6791324c authored by salix5's avatar salix5

Card.GetTextDefense()

parent 0af344a3
......@@ -636,7 +636,7 @@ int32 scriptlib::card_get_text_defense(lua_State *L) {
check_param_count(L, 1);
check_param(L, PARAM_TYPE_CARD, 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);
else
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