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; }