[svn2427] ActorTalents:unlearnTalent edge-case

Moderator: Moderator

Post Reply
Message
Author
yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

[svn2427] ActorTalents:unlearnTalent edge-case

#1 Post by yufra »

In the event that unlearnTalent is called on an unkown talent this will bomb (particularly line 273). The documentation indicates the functions should check for errors, but doesn't appear to right now. How about adding this near the top of the function?

Code: Select all

if not self:knowTalent(t_id) then
    local msg = ([[[TALENT] cannot unlearn %s (%s, %d)]]):format(t.name, t.short_name, t_id)
    print(msg)
    return false, msg
end
<DarkGod> lets say it's intended

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: [svn2427] ActorTalents:unlearnTalent edge-case

#2 Post by darkgod »

done
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply