forceUseTalent [1.7b3]
Posted: Fri Aug 07, 2020 6:05 pm
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
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.
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)}