feat(CreatureMethods): Add AllLootRemovedFromCorpse method (#363)

This commit is contained in:
Aldori
2026-03-07 16:33:16 -05:00
committed by GitHub
parent c175aeca3f
commit ecb3d102ac
2 changed files with 10 additions and 0 deletions

View File

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

View File

@@ -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.
*