azerothcore / mod-eluna

Eluna Lua Engine © for WoW Emulators
https://elunaluaengine.github.io/
GNU General Public License v3.0
96 stars 126 forks source link

Add Specialization Check Methods to Player #163

Closed iThorgrim closed 7 months ago

iThorgrim commented 7 months ago

This Pull Request introduces four new methods to the Player class in order to check for a player's specialization:

The code for these methods has already been tested and works as expected. You can use them by calling Player:HasTankSpec(), Player:HasMeleeSpec(), Player:HasCasterSpec(), Player:HasHealSpec() respectively.

Your feedback on this addition would be greatly appreciated. Kind Regards,

Vaiocti (iThorgrim)