Commit b8108fcf4321a38b2ef886c8a42e70b209b65d6d

Authored by zhouhaihai
1 parent 263f2579

某些陷阱不触发被动

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/adv/AdvBlock.lua
@@ -215,7 +215,9 @@ function Block:randomEvent() @@ -215,7 +215,9 @@ function Block:randomEvent()
215 randomFunc[AdvEventType.Trap] = function() 215 randomFunc[AdvEventType.Trap] = function()
216 local data = csvdb["event_trapCsv"][self.event.id] 216 local data = csvdb["event_trapCsv"][self.event.id]
217 -- 因为一些神器效果 提前触发被动 217 -- 因为一些神器效果 提前触发被动
218 - adv.battle.player:triggerPassive(Passive.CLICK_TRAP) 218 + if not data.classify:sismember(1, " ") then
  219 + adv.battle.player:triggerPassive(Passive.CLICK_TRAP)
  220 + end
219 221
220 local buffs = data.effect:toArray(true, "=") 222 local buffs = data.effect:toArray(true, "=")
221 223