Commit 62f79d6cc8c7186359f466bc21fc925be16af076

Authored by 测试
2 parents 7b570ef2 9ee46da4

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

@@ -242,6 +242,7 @@ AdvBackEventType = { @@ -242,6 +242,7 @@ AdvBackEventType = {
242 BuffEffect = 27, -- buff 效果 242 BuffEffect = 27, -- buff 效果
243 PassiveEffect = 28, -- 被动 效果 243 PassiveEffect = 28, -- 被动 效果
244 ChooseDice = 29, -- 选择点随机效果 244 ChooseDice = 29, -- 选择点随机效果
  245 + NoEffect = 30, -- 没有效果
245 } 246 }
246 247
247 AdvScoreType = { 248 AdvScoreType = {
@@ -160,8 +160,11 @@ function Adv:initByChapter(params) @@ -160,8 +160,11 @@ function Adv:initByChapter(params)
160 self:checkAdvUnlock(1, self.level) 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 end 168 end
166 169
167 if not notNotify then 170 if not notNotify then
@@ -2033,9 +2036,18 @@ function Adv:doActive(activeId, target) @@ -2033,9 +2036,18 @@ function Adv:doActive(activeId, target)
2033 -- 5:放逐目标 2036 -- 5:放逐目标
2034 doActiveEffect[5] = function(_) 2037 doActiveEffect[5] = function(_)
2035 for _, target in ipairs(targers) do 2038 for _, target in ipairs(targers) do
  2039 + local had = false
2036 if not target.lock and not target.isDead then 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 end 2051 end
2040 end 2052 end
2041 return true 2053 return true
src/adv/AdvPlayer.lua
@@ -677,6 +677,10 @@ function Enemy:getClassify() @@ -677,6 +677,10 @@ function Enemy:getClassify()
677 return csvdb["event_monsterCsv"][self.monsterId].classify 677 return csvdb["event_monsterCsv"][self.monsterId].classify
678 end 678 end
679 679
  680 +function Enemy:getMonsterCsv()
  681 + return csvdb["event_monsterCsv"][self.monsterId]
  682 +end
  683 +
680 -- 0=所有 1=怪物 2=玩家 684 -- 0=所有 1=怪物 2=玩家
681 function Enemy:checkAuraBuff(buffs) 685 function Enemy:checkAuraBuff(buffs)
682 local needBuffs = {} 686 local needBuffs = {}