From ccab76a58b00113c06a7918e618ca44c95aeb663 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 19 Jun 2023 12:03:13 +0800 Subject: [PATCH] =?UTF-8?q?buff=E5=9B=9E=E5=90=88=E6=95=B0=E7=AD=89?= =?UTF-8?q?=E4=BA=8E1=E6=97=B6=E4=B9=9F=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/battle/battle_ui.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/app/ui/battle/battle_ui.lua b/lua/app/ui/battle/battle_ui.lua index 45372d46..5d20b6a3 100644 --- a/lua/app/ui/battle/battle_ui.lua +++ b/lua/app/ui/battle/battle_ui.lua @@ -257,7 +257,7 @@ function BattleUI:refreshBuff(side, buffList) icon:setLocalScale(1, 1, 1) icon:setSprite(GConst.ATLAS_PATH.ICON_BUFF, buffObj.buff:getIcon()) local round = buffObj.round - if round <= 1 or round > 9 then + if round <= 0 or round > 9 then text:setText(GConst.EMPTY_STRING) else text:setText(tostring(round)) @@ -285,7 +285,7 @@ function BattleUI:refreshBuff(side, buffList) icon:setLocalScale(1, 1, 1) icon:setSprite(GConst.ATLAS_PATH.ICON_BUFF, buffObj.buff:getIcon()) local round = buffObj.round - if round <= 1 or round > 9 then + if round <= 0 or round > 9 then text:setText(GConst.EMPTY_STRING) else text:setText(tostring(round)) @@ -355,7 +355,7 @@ function BattleUI:showBuffTips(buffList, autoClose) local buffTipsObjMap = buffTipsObj:genAllChildren() buffTipsObjMap["buff.icon"]:setSprite(GConst.ATLAS_PATH.ICON_BUFF, buffObj.buff:getIcon()) local round = buffObj.round - if round <= 1 or round > 9 then + if round <= 0 or round > 9 then buffTipsObjMap["buff.round"]:setText(GConst.EMPTY_STRING) else buffTipsObjMap["buff.round"]:setText(tostring(round))