Skip to content
Snippets Groups Projects
Commit 42432964 authored by Alex Ksandra's avatar Alex Ksandra
Browse files

Dusting off some code.

parent d251d717
No related branches found
No related tags found
No related merge requests found
......@@ -242,13 +242,11 @@ newTalent{
bt.all = nil
local n = 0
for t, _ in pairs(bt) do n = n + 1 end
if n < 1 then return "(error 2)" end
local n = #bt
if n < 1 then return bt, "(error 2)" end
local e_string = ""
if n == 1 then
e_string = DamageType.dam_def[next(bt)].name
e_string = DamageType.dam_def[bt[1]].name
else
local list = table.keys(bt)
for i = 1, #list do if DamageType.dam_def[list[i]] then
......
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