Commit 3da4db4f7c67d47a29b2eef0f78de6453c3464f7

Authored by zhouhaihai
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,7 +795,7 @@ function Player:changeSp(value, cType)
795 if cType == 0 then 795 if cType == 0 then
796 change = value 796 change = value
797 elseif cType == 1 then 797 elseif cType == 1 then
798 - change = self.sp * value / 100 798 + change = self.spMax * value / 100
799 end 799 end
800 local old = self.sp 800 local old = self.sp
801 self.sp = math.floor(math.min(self.spMax, math.max(0, self.sp + change))) 801 self.sp = math.floor(math.min(self.spMax, math.max(0, self.sp + change)))