Commit c98d8359 authored by Chen Bill's avatar Chen Bill

fix Card.IsNonAttribute

parent ac57dc56
......@@ -1241,7 +1241,7 @@ int32 scriptlib::card_is_non_attribute(lua_State *L) {
check_param(L, PARAM_TYPE_CARD, 1);
card* pcard = *(card**)lua_touserdata(L, 1);
uint32 tattrib = (uint32)lua_tointeger(L, 2);
if(pcard->get_attribute() & (ATTRIBUTE_ALL - tattrib))
if(pcard->get_attribute() & (ATTRIBUTE_ALL & ~tattrib))
lua_pushboolean(L, 1);
else
lua_pushboolean(L, 0);
......
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