Commit 3c89adfb31b0afe252f2a26486bb5ef67c74348c

Authored by zhouhaihai
1 parent c047749a

buff 减次数

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/adv/AdvBuff.lua
@@ -378,10 +378,10 @@ function Buff:canEffect(...) @@ -378,10 +378,10 @@ function Buff:canEffect(...)
378 end 378 end
379 379
380 function Buff:effect() 380 function Buff:effect()
  381 + self:decCount()
381 if self._effectValue then 382 if self._effectValue then
382 return self:_effectValue() 383 return self:_effectValue()
383 end 384 end
384 - self:decCount()  
385 end 385 end
386 --删除buff 时调用 386 --删除buff 时调用
387 function Buff:endBuff() 387 function Buff:endBuff()