View Single Post
09-13-08, 11:06 AM   #3
Thaoky
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 30
Yeah, that's what I did in the end, and it was rather easy after all. But I guess an event would be more natural

I had started with SKILL_LINES_CHANGED, but it was triggered so often that the solution I was about to come up with would have been dirty, so I rolled back and started to look for another solution. Here's what I did, if by any chance anyone is interested.

Code:
local Orig_AbandonSkill = AbandonSkill

function AbandonSkill(index, ...)
  local skillName = GetSkillLineInfo(index)
  Orig_AbandonSkill(index, ...)

  -- do whatever here with skillName
end
  Reply With Quote