local function onAttackStart() local targetID = SL:Get_TARGET_ID() if targetID and targetID > 0 then local name = SL:Get_ACTOR_NAME(targetID) if type(name) == "string" and #name > 0 then -- ✅ 确认为有效怪物名(可追加类型判断逻辑,如排除

🤖 回答引擎: 前端Lua | 🕒 时间: 2026-03-05 17:43:15 | 👁️ 阅读: 13
← 返回问答库