diff --git a/lua/app/module/battle/controller/battle_base_controller.lua b/lua/app/module/battle/controller/battle_base_controller.lua index d7b59561..ee39b0c5 100644 --- a/lua/app/module/battle/controller/battle_base_controller.lua +++ b/lua/app/module/battle/controller/battle_base_controller.lua @@ -2338,7 +2338,7 @@ function BattleBaseController:shuffleBoard(callback) else self.resetList = table.clearOrCreate(self.resetList) for posId, entity in pairs(self.battleData:getGridEnties()) do - if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() then + if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() and not entity:getCantUpset() then table.insert(self.resetList, entity) end end @@ -2387,7 +2387,7 @@ function BattleBaseController:getShuffleBoardInfo() end local anySkillCount = 0 for posId, entity in pairs(self.battleData:getGridEnties()) do - if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() then + if self:getPosIdInCurActionBoardRowRange(posId) and entity:isCanFallStatus() and not entity:getCantUpset() then if entity:getSkillId() then local skillEntity = self:getSkillEntityBySkillId(entity:getSkillId()) local elementType = skillEntity:getPosition() diff --git a/lua/app/module/hero/hero_const.lua b/lua/app/module/hero/hero_const.lua index a56e096a..5005327c 100644 --- a/lua/app/module/hero/hero_const.lua +++ b/lua/app/module/hero/hero_const.lua @@ -67,6 +67,6 @@ HeroConst.SHOW_NODE = HeroConst.TRIAL_HERO_ID = 34001 -- 花木兰 HeroConst.TRIAL_HERO_MIN_CHAPTER = 2 -HeroConst.TRIAL_HERO_MAX_CHAPTER = 4 +HeroConst.TRIAL_HERO_MAX_CHAPTER = 5 return HeroConst \ No newline at end of file diff --git a/lua/app/ui/main_city/cell/side_bar_discount_cell.lua b/lua/app/ui/main_city/cell/side_bar_discount_cell.lua index e3c086d9..a0ea6393 100644 --- a/lua/app/ui/main_city/cell/side_bar_discount_cell.lua +++ b/lua/app/ui/main_city/cell/side_bar_discount_cell.lua @@ -53,11 +53,12 @@ function SideBarDiscountCell:getSpineName() end function SideBarDiscountCell:onClick() + DataManager.ShopData:markEntranceDiscountRedPoint() EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.GO_SHOP, {page = GConst.ShopConst.PAGE_TYPE.DISCOUNT}) end function SideBarDiscountCell:getIsShowRedPoint() - return false + return DataManager.ShopData:getEntranceDiscountRedPoint() end return SideBarDiscountCell \ No newline at end of file diff --git a/lua/app/userdata/battle/battle_grid_entity.lua b/lua/app/userdata/battle/battle_grid_entity.lua index ee0cefb8..8a61cb49 100644 --- a/lua/app/userdata/battle/battle_grid_entity.lua +++ b/lua/app/userdata/battle/battle_grid_entity.lua @@ -446,6 +446,10 @@ function BattleGridEntity:getBftcTime() return self:getGridTypeConfig().bftc_time or 0 end +function BattleGridEntity:getCantUpset() + return self:getGridTypeConfig().cant_upset == 1 +end + function BattleGridEntity:getEffectSfx() local sfxName = self:getGridTypeConfig().effect_sfx if not sfxName then diff --git a/lua/app/userdata/shop/shop_data.lua b/lua/app/userdata/shop/shop_data.lua index 2a3a1351..ade52d52 100644 --- a/lua/app/userdata/shop/shop_data.lua +++ b/lua/app/userdata/shop/shop_data.lua @@ -980,6 +980,14 @@ function ShopData:markShopDiscountRedPoint() LocalData:setShopDiscountRedPointTime(today) end +function ShopData:getEntranceDiscountRedPoint() + return not self.isClickedDiscount +end + +function ShopData:markEntranceDiscountRedPoint() + self.isClickedDiscount = true +end + function ShopData:checkLoginPopInfo() -- 初始化礼包弹出逻辑 local actPopUpGifts = self:getPopUpGiftByType(PayManager.PURCHARSE_TYPE.ACT_GIFT)