Index: map/lua/lua_baseentity.cpp =================================================================== --- map/lua/lua_baseentity.cpp (revision 2685) +++ map/lua/lua_baseentity.cpp (working copy) @@ -3671,11 +3671,13 @@ lua_gettable(L,-2); lua_insert(L,-2); lua_pushlightuserdata(L,(void*)PStatusEffect); + + if( lua_pcall(L,2,1,0) ) + { + return 0; + } } - if( lua_pcall(L,2,1,0) ) - { - return 0; - } + return 1; }