Skip to content

feat(PlayerMethods): Expose GetTalentTreePoints and GetMostPointsTalentTree#382

Merged
iThorgrim merged 1 commit intoazerothcore:masterfrom
mostlynick3:talents
May 3, 2026
Merged

feat(PlayerMethods): Expose GetTalentTreePoints and GetMostPointsTalentTree#382
iThorgrim merged 1 commit intoazerothcore:masterfrom
mostlynick3:talents

Conversation

@mostlynick3
Copy link
Copy Markdown

Re #380

Tested through

local function OnCommand(event, player, command)
    if command == "testtalenttree" then

        local t1, t2, t3 = player:GetTalentTreePoints()
        local dominant = player:GetMostPointsTalentTree()
        
        player:SendBroadcastMessage("Player talent info: "..player:GetName()..". Class: "..player:GetClass())
        player:SendBroadcastMessage("Tree 1: " .. t1 .. " | Tree 2: " .. t2 .. " | Tree 3: " .. t3)
        player:SendBroadcastMessage("Dominant tree index: " .. dominant)

        return false
    end
end

RegisterPlayerEvent(42, OnCommand)
image

@mostlynick3 mostlynick3 changed the title Expose GetTalentTreePoints and GetMostPointsTalentTree feat(PlayerMethods): Expose GetTalentTreePoints and GetMostPointsTalentTree May 3, 2026
@iThorgrim iThorgrim self-requested a review May 3, 2026 07:51
@iThorgrim iThorgrim merged commit 7a6ec6e into azerothcore:master May 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants