From 0da9740bf4302d9d3a82f1fddc384f9e2e68371f Mon Sep 17 00:00:00 2001 From: baisebaoma Date: Mon, 15 Apr 2024 21:28:45 +0800 Subject: [PATCH] bug fixes --- jianyu_tg.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jianyu_tg.lua b/jianyu_tg.lua index c97b797..50ebacf 100644 --- a/jianyu_tg.lua +++ b/jianyu_tg.lua @@ -2549,7 +2549,14 @@ local zhaoyong = fk.CreateActiveSkill { return "#jy_zhaoyong:::" .. card_name end, can_use = function(self, player) - return player:usedSkillTimes(self.name, Player.HistoryPhase) == 0 + local card_name + if Self:getSwitchSkillState(self.name) == fk.SwitchYang then + card_name = Fk:translate("await_exhausted") + else + card_name = Fk:translate("fire_attack") + end + return player:usedSkillTimes(self.name, Player.HistoryPhase) == 0 and + U.canUseCardTo(player.room, player, player, Fk:cloneCard(card_name)) -- 感觉可能用不了 end, card_filter = Util.FalseFunc, on_use = function(self, room, effect)