Commit fc93b1228eadf637b0ea1fbba69486b9c4435bb3

Authored by zhouhaihai
1 parent 7dbd787a

指定怪增加buff

Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
src/adv/AdvPassive.lua
... ... @@ -435,11 +435,13 @@ function Passive:effect5(monsterId)
435 435  
436 436 end
437 437  
438   ---6=给所有场上怪物增加buff
439   -function Passive:effect6(value)
  438 +--6=给所有场上怪物增加buff 《 限定 怪 id》
  439 +function Passive:effect6(value, triggerPms, enemyId)
440 440 local aims = self.owner.battle.player:getTeam(2)
441 441 for k , aim in pairs(aims) do
442   - aim:addBuff(value, self.owner)
  442 + if not enemyId or enemyId == 0 or aim.monsterId == enemyId then
  443 + aim:addBuff(value, self.owner)
  444 + end
443 445 end
444 446 end
445 447  
... ...