Page 1 of 1

forceUseTalent [1.7b3]

Posted: Fri Aug 07, 2020 6:05 pm
by Pisastrish
Not 100% sure this is a bug, so sorry in advance if I'm wrong. I've been having trouble getting forceUseTalent to work properly in an addon I'm working on, and when I was looking through the code for it, I saw

Code: Select all

self:setCurrentTalentMode("forced", t.id)
local ret = {self:useTalent(t, def.force_who, def.force_level, def.ignore_cd or def.ignore_cooldown, def.force_target, def.silent, true)}
It seems like t has to be a table for t.id to work, but useTalent doesn't accept t if it is a table.

Re: forceUseTalent [1.7b3]

Posted: Fri Aug 07, 2020 7:05 pm
by darkgod
you're right, fixed :)