Skip to content
Snippets Groups Projects
Commit 90a0b3fa authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@3368 51575b47-30f0-44d4-a5cc-537603b46e54
parent d00b31bd
No related branches found
No related tags found
No related merge requests found
......@@ -441,7 +441,7 @@ newInscription{
tactical = { BUFF = 4 },
on_pre_use = function(self, t)
local ok, data = pcall(self.getInscriptionData, self, t.short_name)
return ok and data.nb_uses > 0
return ok and data and data.nb_uses and data.nb_uses > 0
end,
action = function(self, t)
local data = self:getInscriptionData(t.short_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment