Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Specialization Check Methods to Player #163

Merged
merged 2 commits into from
Jan 28, 2024
Merged

Add Specialization Check Methods to Player #163

merged 2 commits into from
Jan 28, 2024

Conversation

iThorgrim
Copy link

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

  • HasTankSpec: This method will return true if the player has a Tank Specialization, false otherwise.
  • HasMeleeSpec: This method will return true if the player has a Melee Specialization, false otherwise.
  • HasCasterSpec: This method will return true if the player has a Caster Specialization, false otherwise.
  • HasHealSpec: This method will return true if the player has a Heal Specialization, false otherwise.

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)

@Nyeriah Nyeriah merged commit 502136e into azerothcore:master Jan 28, 2024
1 check passed
@iThorgrim iThorgrim deleted the GetSpecialization branch January 28, 2024 14:26
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