[战斗] 不灭buff更新修改提交

dev_chengFeng
wangzhenxing 2020-12-28 12:11:03 +09:00
parent 4010991f0d
commit 4571f9e5a5
1 changed files with 2 additions and 1 deletions

View File

@ -326,7 +326,7 @@ function BuffManager:PassUpdate()
end
end
end
--只更新不灭buff
function BuffManager:PassUpdateNoDead()
local curCamp, curPos = BattleLogic.GetCurTurn()
for i=1, self.buffDic.size do
@ -339,6 +339,7 @@ function BuffManager:PassUpdateNoDead()
and buff.caster.position == curPos
and buff.roundDuration > 0 -- 不是无限存在的buff
and buff.caster.type~=BattleUnitType.Monster --灵兽的buff在这里处理
and buff.type==BuffName.NoDead --不灭在这里处理
then
-- 当前轮释放的buff不结算
buff.roundPass = buff.roundPass + 1