TrinityCore / TrinityCoreCustomChanges

TrinityCore 3.3.5a custom patches, read wiki to get diffs
https://github.com/TrinityCore/TrinityCoreCustomChanges/wiki
GNU General Public License v2.0
72 stars 59 forks source link

Get Roles #100

Open qyh214 opened 1 year ago

qyh214 commented 1 year ago

Description:

in 4.x, we can get roles like tank,heal and dps.but in 3.3.5 this API is lacking.we should add this feature

e.g: like https://github.com/azerothcore/azerothcore-wotlk/blob/master/src/server/game/Entities/Player/Player.cpp#L15939

Branch(es):

3.3.5

ckegg commented 1 year ago

You can look into Trinity::Helpers::Entity::GetPlayerSpecialization() for something easier to implement