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

Adding SetSpellPower for Player #162

Closed iThorgrim closed 7 months ago

iThorgrim commented 7 months ago

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)