From 564b6b8b1714067c6564d47de33e9ea6bc72b1c8 Mon Sep 17 00:00:00 2001 From: xIvan0ff Date: Thu, 20 May 2021 12:51:03 +0300 Subject: [PATCH] Fix for TC --- CreatureMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CreatureMethods.h b/CreatureMethods.h index cc6e2b4..901f8d3 100644 --- a/CreatureMethods.h +++ b/CreatureMethods.h @@ -23,7 +23,11 @@ namespace LuaCreature { bool enable = Eluna::CHECKVAL(L, 2, true); +#if defined(AZEROTHCORE) creature->SetRegeneratingHealth(enable); +#else + creature->SetRegenerateHealth(enable); +#endif return 0; }