Commit 3da4db4f7c67d47a29b2eef0f78de6453c3464f7
1 parent
4b34fee8
回魔 百分比 以上限
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/adv/AdvPlayer.lua
... | ... | @@ -795,7 +795,7 @@ function Player:changeSp(value, cType) |
795 | 795 | if cType == 0 then |
796 | 796 | change = value |
797 | 797 | elseif cType == 1 then |
798 | - change = self.sp * value / 100 | |
798 | + change = self.spMax * value / 100 | |
799 | 799 | end |
800 | 800 | local old = self.sp |
801 | 801 | self.sp = math.floor(math.min(self.spMax, math.max(0, self.sp + change))) | ... | ... |