Fix skl__liyuanhao's jy_huxiao bug

This commit is contained in:
Baisebaoma 2023-12-04 22:31:31 +08:00
parent d9d5d29d89
commit ceeb5a4173
1 changed files with 2 additions and 6 deletions

View File

@ -406,14 +406,10 @@ local jy_huxiao = fk.CreateTriggerSkill{
-- frequency = Skill.Compulsory, -- frequency = Skill.Compulsory,
can_trigger = function(self, event, target, player, data) can_trigger = function(self, event, target, player, data)
if player:hasSkill(self) and data.card.trueName == "slash" then if player:hasSkill(self) and data.card.trueName == "slash" then
-- 使用【杀】 -- 使用是TS打出是CR
if event == fk.TargetSpecified then if event == fk.TargetSpecified or event == fk.CardResponding then
return target == player return target == player
end end
-- 打出【杀】
if event == fk.CardResponding then
return true
end
end end
end, end,
on_use = function(self, event, target, player, data) on_use = function(self, event, target, player, data)