Skip to content

Commit

Permalink
Update PlayerMethods.h
Browse files Browse the repository at this point in the history
  • Loading branch information
iThorgrim authored Jan 23, 2024
1 parent 97037eb commit 9020dcc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/LuaEngine/PlayerMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -4267,6 +4267,21 @@ namespace LuaPlayer
return 1;
}

/**
* 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)
{
int value = Eluna::CHECKVAL<int>(L, 2);
bool apply = Eluna::CHECKVAL<bool>(L, 3, false);

player->ApplySpellPowerBonus(value, apply);
return 0;
}

/*int BindToInstance(lua_State* L, Player* player)
{
player->BindToInstance();
Expand Down

0 comments on commit 9020dcc

Please sign in to comment.