Commit 05ab09a23ce5ae093c716dd5d3f61d402f91ac13
1 parent
286c980a
新的被动效果
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
src/adv/AdvPassive.lua
... | ... | @@ -521,5 +521,17 @@ function Passive:effect13(eventType, triggerPms, eventId, count) |
521 | 521 | end |
522 | 522 | end |
523 | 523 | |
524 | +--14=给所有场上怪物增加buff 《 限定 怪 id》 除了自己 | |
525 | +function Passive:effect14(value, triggerPms, enemyId) | |
526 | + local aims = self.owner.battle.player:getTeam(2) | |
527 | + for k , aim in pairs(aims) do | |
528 | + if aim ~= self.owner then | |
529 | + if not enemyId or enemyId == 0 or aim.monsterId == enemyId then | |
530 | + aim:addBuff(value, self.owner) | |
531 | + end | |
532 | + end | |
533 | + end | |
534 | +end | |
535 | + | |
524 | 536 | |
525 | 537 | return Passive |
526 | 538 | \ No newline at end of file | ... | ... |