feat(CreatureMethods): Add AllLootRemovedFromCorpse method (#363)
This commit is contained in:
@@ -932,6 +932,7 @@ ALERegister<Creature> CreatureMethods[] =
|
||||
{ "CallForHelp", &LuaCreature::CallForHelp },
|
||||
{ "CallAssistance", &LuaCreature::CallAssistance },
|
||||
{ "RemoveCorpse", &LuaCreature::RemoveCorpse },
|
||||
{ "AllLootRemovedFromCorpse", &LuaCreature::AllLootRemovedFromCorpse },
|
||||
{ "DespawnOrUnsummon", &LuaCreature::DespawnOrUnsummon },
|
||||
{ "Respawn", &LuaCreature::Respawn },
|
||||
{ "AttackStart", &LuaCreature::AttackStart },
|
||||
|
||||
@@ -1157,6 +1157,15 @@ namespace LuaCreature
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles this [Creature]'s corpse state after all loot is removed.
|
||||
*/
|
||||
int AllLootRemovedFromCorpse(lua_State* /*L*/, Creature* creature)
|
||||
{
|
||||
creature->AllLootRemovedFromCorpse();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the time it takes for the [Creature]'s corpse to despawn when killed.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user