diff --git a/CMangos/PlayerMethods.h b/CMangos/PlayerMethods.h index 2aaca6d07c..942f107bd5 100644 --- a/CMangos/PlayerMethods.h +++ b/CMangos/PlayerMethods.h @@ -3160,7 +3160,7 @@ namespace LuaPlayer bool update = Eluna::CHECKVAL(L, 3, true); (void)update; // ensure that the variable is referenced in order to pass compiler checks - player->RemoveCategoryCooldown(category); + player->RemoveSpellCategoryCooldown(category, update); return 0; } diff --git a/CMangos/UnitMethods.h b/CMangos/UnitMethods.h index 202a32eac9..19ce4c9106 100644 --- a/CMangos/UnitMethods.h +++ b/CMangos/UnitMethods.h @@ -600,7 +600,7 @@ namespace LuaUnit */ int GetVictim(lua_State* L, Unit* unit) { - Eluna::Push(L, unit->getVictim()); + Eluna::Push(L, unit->GetVictim()); return 1; } @@ -2168,7 +2168,6 @@ namespace LuaUnit } } Eluna::Push(L, target->AddSpellAuraHolder(holder)); -#endif return 1; }