CORE: expose hasStatusEffectByFlag to lua