Commit 62f79d6cc8c7186359f466bc21fc925be16af076
Merge branch 'tr/develop' of 120.26.43.151:wasteland/server into tr/develop
Showing
3 changed files
with
21 additions
and
4 deletions
Show diff stats
src/GlobalVar.lua
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 = {} | ... | ... |