From c962f71c8f1ee521fa03abf3792139cf7a4167e2 Mon Sep 17 00:00:00 2001 From: notify Date: Sat, 8 Apr 2023 09:32:51 +0800 Subject: [PATCH] Fixbug (#104) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修了觉醒技图标显示反的bug 修了流离报错bug --------- Co-authored-by: RalphRad <121930519+RalphRad@users.noreply.github.com> --- lua/server/room.lua | 3 ++- qml/Pages/RoomElement/PhotoElement/LimitSkillItem.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/server/room.lua b/lua/server/room.lua index 787cdf72..5f5d40fa 100644 --- a/lua/server/room.lua +++ b/lua/server/room.lua @@ -997,6 +997,7 @@ function Room:askForChooseCardAndPlayers(player, targets, minNum, maxNum, patter if maxNum < 1 then return {} end + pattern = pattern or ".", local pcards = table.filter(player:getCardIds({ Player.Hand, Player.Equip }), function(id) local c = Fk:getCardById(id) @@ -1008,7 +1009,7 @@ function Room:askForChooseCardAndPlayers(player, targets, minNum, maxNum, patter targets = targets, num = maxNum, min_num = minNum, - pattern = pattern or ".", + pattern = pattern, skillName = skillName } local _, ret = self:askForUseActiveSkill(player, "choose_players_skill", prompt or "", true, data) diff --git a/qml/Pages/RoomElement/PhotoElement/LimitSkillItem.qml b/qml/Pages/RoomElement/PhotoElement/LimitSkillItem.qml index 24465c57..12f5bb55 100644 --- a/qml/Pages/RoomElement/PhotoElement/LimitSkillItem.qml +++ b/qml/Pages/RoomElement/PhotoElement/LimitSkillItem.qml @@ -50,7 +50,7 @@ Item { onUsedtimesChanged: { x.visible = false; if (skilltype === "wake") { - visible = (usedtimes < 1); + visible = (usedtimes > 0); } else if (skilltype === "limit") { visible = true; if (usedtimes >= 1) {