Bug fixes

This commit is contained in:
Baisebaoma 2023-12-09 15:05:13 +08:00
parent 14521760ee
commit 84da853052
1 changed files with 9 additions and 15 deletions

View File

@ -1035,9 +1035,7 @@ Fk:loadTranslationTable {
["jy_yuanshen"] = "原神", ["jy_yuanshen"] = "原神",
[":jy_yuanshen"] = [[+1 [":jy_yuanshen"] = [[+1
<font size="1"><br>+2 <font size="1"><br>+2
</font>]],
+1
+13</font>]],
["jy_huoji"] = "帽猫", ["jy_huoji"] = "帽猫",
[":jy_huoji"] = [[你可以将一张♠手牌当作【火杀】使用或打出。]], [":jy_huoji"] = [[你可以将一张♠手牌当作【火杀】使用或打出。]],
@ -1051,8 +1049,8 @@ Fk:loadTranslationTable {
local tym__zhaoqianxi_2 = General(extension, "tym__zhaoqianxi_2", "qun", 4, 4, General.Male) local tym__zhaoqianxi_2 = General(extension, "tym__zhaoqianxi_2", "qun", 4, 4, General.Male)
-- tym__zhaoqianxi_2.hidden = true -- tym__zhaoqianxi_2.hidden = true
-- TODO被铁索连环的目标如果因为这次伤害受到了元素反应那么不会让其他被铁索连环的目标受到附着效果。 -- TODO被铁索连环的目标如果因为这次伤害受到了元素反应那么不会让其他被铁索连环的目标受到附着效果。(已修复)
-- 这是因为is_jy_yuanshen_2_triggered。目前已经删除了这个变量以后再处理。但是这样的问题是: -- 这是因为is_jy_yuanshen_2_triggered。目前已经删除了这个变量但是这样的问题是:
-- 如果场上有多个有这个技能的角色那么既会附着又会负面效果铁索连环的副目标会受到2点额外伤害 -- 如果场上有多个有这个技能的角色那么既会附着又会负面效果铁索连环的副目标会受到2点额外伤害
local jy_yuanshen_2 = fk.CreateTriggerSkill{ local jy_yuanshen_2 = fk.CreateTriggerSkill{
name = "jy_yuanshen_2", name = "jy_yuanshen_2",
@ -1143,14 +1141,8 @@ Fk:loadTranslationTable {
["tym__zhaoqianxi_2"] = "界赵乾熙", ["tym__zhaoqianxi_2"] = "界赵乾熙",
["jy_yuanshen_2"] = "原神", ["jy_yuanshen_2"] = "原神",
[":jy_yuanshen_2"] = [[<!-- 锁定技,所有<font color="purple">雷电伤害</font>都会令目标进入<font color="purple">【雷电】</font>状态, [":jy_yuanshen_2"] = [[<font color="red"></font><font color="purple"></font>
<font color="red"></font><font color="red"></font> <font color="purple"></font><font color="red"></font>+1]],
<br /><font color="purple"></font><font color="red"></font>
<font color="red"></font><font color="purple"></font>使+1
<font color="red"></font><font color="purple"></font>
<font color="purple"></font><font color="red"></font>-->
<font color="red"></font><font color="purple"></font>1.
2. <font color="purple"></font><font color="red"></font>+1]],
["#jy_yuanshen_2_reaction_1"] = [[<font color="red">火焰伤害</font>与<font color="purple">【雷电】</font>发生反应,伤害+1]], ["#jy_yuanshen_2_reaction_1"] = [[<font color="red">火焰伤害</font>与<font color="purple">【雷电】</font>发生反应,伤害+1]],
["#jy_yuanshen_2_reaction_2"] = [[<font color="purple">雷电伤害</font>与<font color="red">【火焰】</font>发生反应,目标翻面]], ["#jy_yuanshen_2_reaction_2"] = [[<font color="purple">雷电伤害</font>与<font color="red">【火焰】</font>发生反应,目标翻面]],
@ -1307,6 +1299,8 @@ local jy_luojiao_savage_assault = fk.CreateTriggerSkill{
events = {fk.AfterCardsMove}, events = {fk.AfterCardsMove},
can_trigger = function(self, event, target, player, data) can_trigger = function(self, event, target, player, data)
if not player:hasSkill(self) then return false end if not player:hasSkill(self) then return false end
if player:usedSkillTimes(self.name, Player.HistoryPhase) ~= 0 then return false end -- 这个条件必须放在这里,提高效率,也可以一定程度上防止因别的特殊区牌量变动而多次触发
-- TODO如果有其他的牌进出你的特殊区即使不是点也会触发这个技能
local dians = player:getPile("xjb__aweiluo_dian") local dians = player:getPile("xjb__aweiluo_dian")
-- 判断花色是否全部不同,触发南蛮入侵 -- 判断花色是否全部不同,触发南蛮入侵
if #dians == 0 then return false end -- 熊俊博说1张也可以发动南蛮那就把==1删掉 if #dians == 0 then return false end -- 熊俊博说1张也可以发动南蛮那就把==1删掉
@ -1320,8 +1314,7 @@ local jy_luojiao_savage_assault = fk.CreateTriggerSkill{
dict[suit] = true dict[suit] = true
end end
end end
return player:usedSkillTimes(self.name, Player.HistoryPhase) == 0 and -- 本回合还没使用过 return player.is_dian_changing -- 是否有新的点进出导致南蛮入侵
player.is_dian_changing -- 是否有新的点进出导致南蛮入侵
end, end,
on_cost = function(self, event, target, player, data) on_cost = function(self, event, target, player, data)
return player.room:askForSkillInvoke(player, self.name, nil, "#jy_luojiao_savage_assault_ask") return player.room:askForSkillInvoke(player, self.name, nil, "#jy_luojiao_savage_assault_ask")
@ -1378,6 +1371,7 @@ local jy_yusu_set_0 = fk.CreateTriggerSkill{
on_use = function(self, event, target, player, data) on_use = function(self, event, target, player, data)
local room = player.room local room = player.room
room:setPlayerMark(player, "@jy_yusu_basic_count", 0) room:setPlayerMark(player, "@jy_yusu_basic_count", 0)
-- TODO做一个南蛮入侵已触发的标志也在这里清除
-- player.is_jy_luojiao_archery_attack_used = false -- player.is_jy_luojiao_archery_attack_used = false
-- print("你的回合已开始/结束给你设成了0") -- print("你的回合已开始/结束给你设成了0")
end, end,