bug fixes

This commit is contained in:
baisebaoma 2024-04-15 21:28:45 +08:00
parent 5d40bc17b8
commit 0da9740bf4
1 changed files with 8 additions and 1 deletions

View File

@ -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)