Skip to content
Snippets Groups Projects
Commit 450ec029 authored by dg's avatar dg
Browse files

Fixed psionic gem wielding when the gem has no material level

git-svn-id: http://svn.net-core.org/repos/t-engine4@2546 51575b47-30f0-44d4-a5cc-537603b46e54
parent 28a371fb
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ function getGemLevel(self)
if self:getInven("PSIONIC_FOCUS") then
local tk_item = self:getInven("PSIONIC_FOCUS")[1]
if tk_item and (tk_item.type == "gem") then
gem_level = tk_item.material_level
gem_level = tk_item.material_level or 0
end
end
return gem_level
......
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