API AbandonSkill

From Wowpedia
Jump to: navigation, search

The player abandons a skill.

AbandonSkill(skillLineID);

Arguments

index 
Number - The Skill Line ID (can be found with API GetProfessionInfo())

Returns

nil

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.