Commit cd498e53b534b3117f99cddef982ff75effd207a

Authored by zhouhaihai
1 parent 73da9b9d

被动技生效bug

Showing 2 changed files with 4 additions and 3 deletions   Show diff stats
src/actions/AdvAction.lua
@@ -206,9 +206,9 @@ function _M.startHangRpc(agent, data) @@ -206,9 +206,9 @@ function _M.startHangRpc(agent, data)
206 info.time = skynet.timex() + chapterData.idleTime --挂机时间 206 info.time = skynet.timex() + chapterData.idleTime --挂机时间
207 207
208 -- 没有在战斗 用team来挂机了 把team清掉 208 -- 没有在战斗 用team来挂机了 把team清掉
209 - -- if not role:getAdvData():isRunning() then  
210 - -- role:updateProperty({field = "advTeam", value = {}})  
211 - -- end 209 + if not role:getAdvData():isRunning() then
  210 + role:updateProperty({field = "advTeam", value = {}})
  211 + end
212 212
213 role:changeUpdates({{type = "advHang", field = chapterId, value = info}}) 213 role:changeUpdates({{type = "advHang", field = chapterId, value = info}})
214 214
@@ -80,6 +80,7 @@ function Adv:initByChapter(chapterId, level, isToNext, notNotify, isRelay, isEnt @@ -80,6 +80,7 @@ function Adv:initByChapter(chapterId, level, isToNext, notNotify, isRelay, isEnt
80 self.cacheUnlock = self.cacheUnlock or {} 80 self.cacheUnlock = self.cacheUnlock or {}
81 self.shopStatus = self.shopStatus or {} 81 self.shopStatus = self.shopStatus or {}
82 self.support = self.support or {} 82 self.support = self.support or {}
  83 + self.battle = nil -- 清掉 老的 battle
83 84
84 if isEnter then -- 把 支援效果初始化为易用用的形式 85 if isEnter then -- 把 支援效果初始化为易用用的形式
85 self:initSupport(support or {}) 86 self:initSupport(support or {})