Bug fixes, nerfed yangfan

This commit is contained in:
Baisebaoma 2023-12-17 11:54:03 +08:00
parent 075d987d5c
commit 77db109671
1 changed files with 6 additions and 3 deletions

View File

@ -1611,6 +1611,7 @@ local jy_sichi = fk.CreateTriggerSkill{
}
-- ol_sp1 sheyan
-- TODO如果别人用♣借刀杀人指定了另外两个目标并且判定为♥指定我为目标借自己的刀杀自己杀出不出去只能给刀
local jy_huapen = fk.CreateTriggerSkill{
name = "jy_huapen",
anim_type = "control",
@ -1621,6 +1622,8 @@ local jy_huapen = fk.CreateTriggerSkill{
data.card.suit == Card.Club and
(data.card:isCommonTrick() or data.card.type == Card.TypeBasic) then
local previous_targets = AimGroup:getAllTargets(data.tos)
if #AimGroup:getAllTargets(data.tos) ~= 1 then return false end -- 如果目标不是一个,那就不用管了
-- 不知道借刀杀人什么target
-- 如果目标里面已经有我自己了,那就不要判定了
for _, v in pairs(previous_targets) do
if v == player.id then
@ -1643,7 +1646,7 @@ local jy_huapen = fk.CreateTriggerSkill{
room:judge(judge)
if judge.card.suit == Card.Heart then
room:doIndicate(data.from, {player.id}) -- 播放指示线
if #AimGroup:getAllTargets(data.tos) == 1 then
if #AimGroup:getAllTargets(data.tos) == 1 then -- 如果只有一个人,那么把我也加进去
table.insertTable(targets, AimGroup:getAllTargets(data.tos))
end
TargetGroup:pushTargets(data.targetGroup, player.id)
@ -1669,7 +1672,7 @@ local jy_boshi = fk.CreateTriggerSkill{
room:changeMaxHp(player, 1)
room:recover({
who = player,
num = 3,
num = 1,
recoverBy = player,
skillName = self.name,
})
@ -1853,7 +1856,7 @@ Fk:loadTranslationTable {
<font color="red"></font>]],
["jy_boshi"] = "搏十",
[":jy_boshi"] = [[103
[":jy_boshi"] = [[10
3]],
["@jy_boshi_judge_count"] = "搏十",