SetRegenerateHealth only for AC/TC

This commit is contained in:
xIvan0ff
2021-05-23 14:56:39 +03:00
parent fa6fc881e6
commit c2bbe07163
2 changed files with 4 additions and 0 deletions

View File

@@ -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,

View File

@@ -790,7 +790,9 @@ ElunaRegister<Creature> CreatureMethods[] =
{ "GetCreatureFamily", &LuaCreature::GetCreatureFamily },
// Setters
#if defined(TRINITY) || defined(AZEROTHCORE)
{ "SetRegeneratingHealth", &LuaCreature::SetRegeneratingHealth },
#endif
{ "SetHover", &LuaCreature::SetHover },
{ "SetDisableGravity", &LuaCreature::SetDisableGravity },
{ "SetAggroEnabled", &LuaCreature::SetAggroEnabled },