Remove CanRegenerateHealth method

This commit is contained in:
Rochet2
2017-08-27 14:58:19 +03:00
parent 2a28fc81a4
commit de4f4276ac
2 changed files with 0 additions and 17 deletions

View File

@@ -26,22 +26,6 @@ namespace LuaCreature
return 1;
}
/**
* Returns `true` if the [Creature] can regenerate its health out-of-combat,
* and returns `false` otherwise.
*
* @return bool regeneratesHealth
*/
int CanRegenerateHealth(lua_State* L, Creature* creature)
{
#ifndef TRINITY
Eluna::Push(L, creature->IsRegeneratingHealth());
#else
Eluna::Push(L, creature->isRegeneratingHealth());
#endif
return 1;
}
/**
* Returns `true` if the [Creature] completes the [Quest] with the ID `questID`,
* and returns `false` otherwise.

View File

@@ -819,7 +819,6 @@ ElunaRegister<Creature> CreatureMethods[] =
{ "CanAssistTo", &LuaCreature::CanAssistTo },
{ "IsTargetableForAttack", &LuaCreature::IsTargetableForAttack },
{ "CanCompleteQuest", &LuaCreature::CanCompleteQuest },
{ "CanRegenerateHealth", &LuaCreature::CanRegenerateHealth },
{ "IsReputationGainDisabled", &LuaCreature::IsReputationGainDisabled },
#ifdef TRINITY
{ "IsDamageEnoughForLootingAndReward", &LuaCreature::IsDamageEnoughForLootingAndReward },