Commit 1bab9165e1c6f6c545ec6292b3dd2bd89cac7242
1 parent
42b74221
buff xiugai
Showing
1 changed file
with
2 additions
and
10 deletions
Show diff stats
src/adv/AdvBuff.lua
@@ -303,22 +303,14 @@ local BuffFactory = { | @@ -303,22 +303,14 @@ local BuffFactory = { | ||
303 | 303 | ||
304 | [Buff.SP_MAX_CHANGE] = function(_Buff) | 304 | [Buff.SP_MAX_CHANGE] = function(_Buff) |
305 | _Buff._init = function(self) --初始化变化值 | 305 | _Buff._init = function(self) --初始化变化值 |
306 | - self:_spChange() | 306 | + self.owner:reSetSpMax() |
307 | end | 307 | end |
308 | _Buff._overlay = function(self) | 308 | _Buff._overlay = function(self) |
309 | - self:_spChange() | ||
310 | - end | ||
311 | - | ||
312 | - _Buff._uncover = function(self) | ||
313 | self.owner:reSetSpMax() | 309 | self.owner:reSetSpMax() |
314 | end | 310 | end |
315 | 311 | ||
316 | - _Buff._spChange = function(self) | ||
317 | - local oldSpMax = self.owner.spMax | 312 | + _Buff._uncover = function(self) |
318 | self.owner:reSetSpMax() | 313 | self.owner:reSetSpMax() |
319 | - | ||
320 | - local curValue = self.owner.spMax - oldSpMax | ||
321 | - self.owner:changeSp(curValue) | ||
322 | end | 314 | end |
323 | 315 | ||
324 | _Buff._endBuff = function(self) | 316 | _Buff._endBuff = function(self) |