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

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@4938 51575b47-30f0-44d4-a5cc-537603b46e54
parent d27f54c3
No related branches found
No related tags found
No related merge requests found
......@@ -427,6 +427,16 @@ newTalent{
sentry:resolve(nil, true)
sentry:forceLevelup(self.level)
-- Auto alloc some stats to be able to wear it
if rawget(o, "require") and rawget(o, "require").stat then
for s, v in pairs(rawget(o, "require").stat) do
if sentry:getStat(s) < v then
sentry.unused_stats = sentry.unused_stats - (v - sentry:getStat(s))
sentry:incStat(s, v - sentry:getStat(s))
end
end
end
result = sentry:wearObject(o, true, false)
if o.archery then
local qo = nil
......
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