From c2bbe07163242f3ceed28e02a7d506e579dacd25 Mon Sep 17 00:00:00 2001 From: xIvan0ff Date: Sun, 23 May 2021 14:56:39 +0300 Subject: [PATCH] SetRegenerateHealth only for AC/TC --- CreatureMethods.h | 2 ++ LuaFunctions.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CreatureMethods.h b/CreatureMethods.h index a8d796d..2f9016b 100644 --- a/CreatureMethods.h +++ b/CreatureMethods.h @@ -32,6 +32,7 @@ namespace LuaCreature return 1; } +#if defined(TRINITY) || defined(AZEROTHCORE) /** * Sets whether the [Creature] can regenerate health or not. * @@ -48,6 +49,7 @@ namespace LuaCreature #endif return 0; } +#endif /** * Returns `true` if the [Creature] is set to not give reputation when killed, diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 9bd1740..ef496f6 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -790,7 +790,9 @@ ElunaRegister CreatureMethods[] = { "GetCreatureFamily", &LuaCreature::GetCreatureFamily }, // Setters +#if defined(TRINITY) || defined(AZEROTHCORE) { "SetRegeneratingHealth", &LuaCreature::SetRegeneratingHealth }, +#endif { "SetHover", &LuaCreature::SetHover }, { "SetDisableGravity", &LuaCreature::SetDisableGravity }, { "SetAggroEnabled", &LuaCreature::SetAggroEnabled },