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

Adding SetSpellPower for Player #162

Merged
merged 2 commits into from
Jan 28, 2024
Merged

Adding SetSpellPower for Player #162

merged 2 commits into from
Jan 28, 2024

Conversation

iThorgrim
Copy link

Hello,
In this pull request we are introducing the SetSpellPower method for Player in the Eluna module.

Here's a brief overview of the function:

/**
 * The [Player] sets the spell power
 *
 * @param int value : The spell power value to set
 * @param bool apply = false : Whether the spell power should be applied or removed
 */
int SetSpellPower(lua_State* L, Player* player)
{
    // Function implementation...
}

This allows you to set the spell power of a [Player], indicating the spell power value to set and whether the spell power should be applied or removed.

Tests were carried out over several months on my own server.
image

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

Vaiocti (iThorgrim)

@iThorgrim iThorgrim changed the title Adding SetSpellPower Method Adding SetSpellPower for Player Jan 23, 2024
@Nyeriah Nyeriah merged commit d3638cd into azerothcore:master Jan 28, 2024
1 check passed
@iThorgrim iThorgrim deleted the SetSpellPower 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