Commit c4fb43c5 authored by salix5's avatar salix5

Effect.IsActivated()

parent 52b02efd
......@@ -530,7 +530,7 @@ int32 scriptlib::effect_is_activated(lua_State * L) {
check_param_count(L, 1);
check_param(L, PARAM_TYPE_EFFECT, 1);
effect* peffect = *(effect**) lua_touserdata(L, 1);
lua_pushboolean(L, (peffect->status & EFFECT_STATUS_ACTIVATED) || (peffect->flag & EFFECT_FLAG_OWNER_RELATE));
lua_pushboolean(L, (peffect->status & EFFECT_STATUS_ACTIVATED));
return 1;
}
......
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