From e807d0172baa3d336b26944ea57fdc66d44f70d0 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Fri, 19 Mar 2021 22:14:53 +0200 Subject: [PATCH] Simplify RemoveSpell and fix it on AC --- PlayerMethods.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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; }