kaiju_2 can now check if the target can not be snatched

This commit is contained in:
Baisebaoma 2023-12-15 00:46:31 +08:00
parent aa8e390eb7
commit 3488d4a5ab
1 changed files with 8 additions and 9 deletions

View File

@ -222,16 +222,15 @@ local jy_kaiju_2 = fk.CreateActiveSkill{
card_num = 0, card_num = 0,
target_filter = function(self, to_select, selected) target_filter = function(self, to_select, selected)
-- 判断目标是否有谦逊 -- 判断目标是否不能成为【顺手牵羊】的目标
-- 迭代器只能这么写因为to_select是一个int s = Fk:currentRoom():getPlayerById(to_select)
for _, s in ipairs(Fk:currentRoom():getPlayerById(to_select).player_skills) do local snatch = Fk:cloneCard("snatch")
if s.name == "qianxun" then if Self:isProhibited(s, snatch) then -- 前面的是自己,后面的是别人!
return false return false
end end
end
return to_select ~= Self.id and -- 如果目标不是自己,而且没有谦逊 return to_select ~= Self.id and -- 如果目标不是自己
not Fk:currentRoom():getPlayerById(to_select):isAllNude() -- 而且不是啥也没有 not s:isAllNude() -- 而且不是啥也没有,那就可以对他用这个技能
end, end,
min_target_num = 1, min_target_num = 1,
on_use = function(self, room, use) on_use = function(self, room, use)
@ -286,7 +285,7 @@ Fk:loadTranslationTable{
["tym__jianzihao"] = "界简自豪", ["tym__jianzihao"] = "界简自豪",
["jy_kaiju_2"] = "开局", ["jy_kaiju_2"] = "开局",
[":jy_kaiju_2"] = "出牌阶段限一次,你选择若干名角色,视为你对他们使用一张【顺手牵羊】,然后被他们使用一张【杀】,依次结算", [":jy_kaiju_2"] = "出牌阶段限一次,你可以选择若干名角色,视为你对他们使用一张【顺手牵羊】,然后被他们使用一张【杀】。",
["$jy_kaiju_21"] = "不是啊我炸一对鬼的时候我在打什么打一对10。一对10他四个9炸我我不输了吗", ["$jy_kaiju_21"] = "不是啊我炸一对鬼的时候我在打什么打一对10。一对10他四个9炸我我不输了吗",
["$jy_kaiju_22"] = "怎么赢啊?你别瞎说啊!", ["$jy_kaiju_22"] = "怎么赢啊?你别瞎说啊!",
["$jy_kaiju_23"] = "打这牌怎么打?兄弟们快教我,我看着头晕!", ["$jy_kaiju_23"] = "打这牌怎么打?兄弟们快教我,我看着头晕!",