diff --git a/lua/app/userdata/battle/skill/battle_board_skill_entity.lua b/lua/app/userdata/battle/skill/battle_board_skill_entity.lua index 65f2e998..ea464767 100644 --- a/lua/app/userdata/battle/skill/battle_board_skill_entity.lua +++ b/lua/app/userdata/battle/skill/battle_board_skill_entity.lua @@ -94,16 +94,30 @@ function BattleBoardSkillEntity:getBoardRange() end local boardRangeList = {} + local map for _, info in ipairs(self.config.boardrange) do local singleInfo = { type = info.type, range = info.range } if self.addRange[info.type] then + if not map then + map = {} + end + map[info.type] = true singleInfo.range = singleInfo.range + self.addRange[info.type] end table.insert(boardRangeList, singleInfo) end + for t, v in pairs(self.addRange) do + if not map or not map[t] then + local singleInfo = { + type = t, + range = v + } + table.insert(boardRangeList, singleInfo) + end + end return boardRangeList end