Skip to content

Commit 72a9279

Browse files
authored
Merge pull request #10035 from Skold177/Convert-Bugfix
[lua] Convert Bugfix
2 parents b89ca28 + 992b88a commit 72a9279

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/actions/abilities/convert.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
local abilityObject = {}
1010

1111
abilityObject.onAbilityCheck = function(player, target, ability)
12+
if player:getMP() == 0 then
13+
return xi.msg.basic.CANNOT_PERFORM, 0
14+
end
15+
1216
return 0, 0
1317
end
1418

0 commit comments

Comments
 (0)