AbandonSkill

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

The player abandons a skill.

AbandonSkill(skillLineID)

Arguments

skillLineID
number - The Skill Line ID (can be found with API GetProfessionInfo())

Example

local prof1, prof2, archaeology, fishing, cooking, firstAid = GetProfessions();
local skillLineID = select(7, GetProfessionInfo(prof1));
AbandonSkill(skillLineID);

Result

The player abandons a skill.

CAUTION: There is no confirmation dialog for this action. Use with care.