mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Remove CanRegenerateHealth method
This commit is contained in:
@@ -26,22 +26,6 @@ namespace LuaCreature
|
|||||||
return 1;
|
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`,
|
* Returns `true` if the [Creature] completes the [Quest] with the ID `questID`,
|
||||||
* and returns `false` otherwise.
|
* and returns `false` otherwise.
|
||||||
|
|||||||
@@ -819,7 +819,6 @@ ElunaRegister<Creature> CreatureMethods[] =
|
|||||||
{ "CanAssistTo", &LuaCreature::CanAssistTo },
|
{ "CanAssistTo", &LuaCreature::CanAssistTo },
|
||||||
{ "IsTargetableForAttack", &LuaCreature::IsTargetableForAttack },
|
{ "IsTargetableForAttack", &LuaCreature::IsTargetableForAttack },
|
||||||
{ "CanCompleteQuest", &LuaCreature::CanCompleteQuest },
|
{ "CanCompleteQuest", &LuaCreature::CanCompleteQuest },
|
||||||
{ "CanRegenerateHealth", &LuaCreature::CanRegenerateHealth },
|
|
||||||
{ "IsReputationGainDisabled", &LuaCreature::IsReputationGainDisabled },
|
{ "IsReputationGainDisabled", &LuaCreature::IsReputationGainDisabled },
|
||||||
#ifdef TRINITY
|
#ifdef TRINITY
|
||||||
{ "IsDamageEnoughForLootingAndReward", &LuaCreature::IsDamageEnoughForLootingAndReward },
|
{ "IsDamageEnoughForLootingAndReward", &LuaCreature::IsDamageEnoughForLootingAndReward },
|
||||||
|
|||||||
Reference in New Issue
Block a user