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