diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/skill.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/skill.lua index 76a05c1..e7a4a08 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/skill.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/actions/skill.lua @@ -13,6 +13,7 @@ end function SkillAction:startAction() core.debug:print("cbs/action", "Starting flee action") self:loadChoregraphyFromSkill(self.data) + self.fighter:setPP(self.data.cost * -1, true) end return SkillAction diff --git a/sonic-radiance.love/scenes/battlesystem/menus/widgets.lua b/sonic-radiance.love/scenes/battlesystem/menus/widgets.lua index fcc0be8..3a2c691 100644 --- a/sonic-radiance.love/scenes/battlesystem/menus/widgets.lua +++ b/sonic-radiance.love/scenes/battlesystem/menus/widgets.lua @@ -110,7 +110,7 @@ end function widgets.SkillWidget:sendCharacterData() - if self.skilldata ~= nil then + if (self.skilldata ~= nil and self.skilldata.cost <= self.character.abstract.pp) then self.assets.sfx["mSelect"]:play() self.character:useSkill(self.skillname) else