From 92079e303477ce7f7a9c2dd53eb7bc3a2dfd2fea Mon Sep 17 00:00:00 2001 From: Baisebaoma Date: Thu, 14 Dec 2023 22:20:02 +0800 Subject: [PATCH] kaiju_2 bug fix --- jianyu.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jianyu.lua b/jianyu.lua index a6966f6..80d2543 100644 --- a/jianyu.lua +++ b/jianyu.lua @@ -223,7 +223,8 @@ local jy_kaiju_2 = fk.CreateActiveSkill{ target_filter = function(self, to_select, selected) -- 判断目标是否有谦逊 - for _, s in ipairs(to_select:getAllSkills()) do + -- 迭代器只能这么写,因为to_select是一个int + for _, s in ipairs(Fk:currentRoom():getPlayerById(to_select).player_skills) do if s.name == "qianxun" then return false end