Merge pull request #1 from r-o-b-o-t-o/feat/arena-methods

feat: expose RemoveArenaSpellCooldowns and RemoveArenaAuras
This commit is contained in:
55Honey
2021-10-20 21:11:08 +02:00
committed by GitHub
3 changed files with 28 additions and 0 deletions

View File

@@ -3728,6 +3728,17 @@ namespace LuaPlayer
return 0;
}
#if !defined(CLASSIC)
/**
* Remove cooldowns on spells that have less than 10 minutes of cooldown from the [Player], similarly to when you enter an arena.
*/
int RemoveArenaSpellCooldowns(lua_State* /*L*/, Player* player)
{
player->RemoveArenaSpellCooldowns();
return 0;
}
#endif
/**
* Resurrects the [Player].
*