Commit 62f79d6cc8c7186359f466bc21fc925be16af076

Authored by liuzujun
2 parents 7b570ef2 9ee46da4

Merge branch 'tr/develop' of 120.26.43.151:wasteland/server into tr/develop

src/GlobalVar.lua
... ... @@ -242,6 +242,7 @@ AdvBackEventType = {
242 242 BuffEffect = 27, -- buff 效果
243 243 PassiveEffect = 28, -- 被动 效果
244 244 ChooseDice = 29, -- 选择点随机效果
  245 + NoEffect = 30, -- 没有效果
245 246 }
246 247  
247 248 AdvScoreType = {
... ...
src/adv/Adv.lua
... ... @@ -160,8 +160,11 @@ function Adv:initByChapter(params)
160 160 self:checkAdvUnlock(1, self.level)
161 161  
162 162 -- 中继进入奖励
163   - if relayData and isEnter then
164   - self:awardRelay(relayData, notNotify)
  163 + if isEnter then
  164 + relayData = relayData or self:isHaveRelay(level, chapterId)
  165 + if relayData then
  166 + self:awardRelay(relayData, notNotify)
  167 + end
165 168 end
166 169  
167 170 if not notNotify then
... ... @@ -2033,9 +2036,18 @@ function Adv:doActive(activeId, target)
2033 2036 -- 5:放逐目标
2034 2037 doActiveEffect[5] = function(_)
2035 2038 for _, target in ipairs(targers) do
  2039 + local had = false
2036 2040 if not target.lock and not target.isDead then
2037   - target:kill()
2038   - self:backBlockChange(target.roomId, target.blockId)
  2041 + if target:getMonsterCsv().type == 5 then
  2042 + -- 假boss 不能用
  2043 + had = true
  2044 + else
  2045 + target:kill()
  2046 + self:backBlockChange(target.roomId, target.blockId)
  2047 + end
  2048 + end
  2049 + if had then
  2050 + self:pushBackEvent(AdvBackEventType.NoEffect)
2039 2051 end
2040 2052 end
2041 2053 return true
... ...
src/adv/AdvPlayer.lua
... ... @@ -677,6 +677,10 @@ function Enemy:getClassify()
677 677 return csvdb["event_monsterCsv"][self.monsterId].classify
678 678 end
679 679  
  680 +function Enemy:getMonsterCsv()
  681 + return csvdb["event_monsterCsv"][self.monsterId]
  682 +end
  683 +
680 684 -- 0=所有 1=怪物 2=玩家
681 685 function Enemy:checkAuraBuff(buffs)
682 686 local needBuffs = {}
... ...