diff --git a/PlayerMethods.h b/PlayerMethods.h index b581727..6da4bee 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -2692,19 +2692,17 @@ namespace LuaPlayer * Removes the [Spell] from the [Player] * * @param uint32 entry : entry of a [Spell] - * @param bool disabled = false - * @param bool learnLowRank = true */ int RemoveSpell(lua_State* L, Player* player) { uint32 entry = Eluna::CHECKVAL(L, 2); - bool disabled = Eluna::CHECKVAL(L, 3, false); - bool learn_low_rank = Eluna::CHECKVAL(L, 4, true); #ifdef TRINITY - player->RemoveSpell(entry, disabled, learn_low_rank); + player->RemoveSpell(entry); +#elif defined (AZEROTHCORE) + player->removeSpell(entry, SPEC_MASK_ALL, false); #else - player->removeSpell(entry, disabled, learn_low_rank); + player->removeSpell(entry); #endif return 0; }