Skip to content

Commit ecb3d10

Browse files
authored
feat(CreatureMethods): Add AllLootRemovedFromCorpse method (#363)
1 parent c175aec commit ecb3d10

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/LuaEngine/LuaFunctions.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ ALERegister<Creature> CreatureMethods[] =
932932
{ "CallForHelp", &LuaCreature::CallForHelp },
933933
{ "CallAssistance", &LuaCreature::CallAssistance },
934934
{ "RemoveCorpse", &LuaCreature::RemoveCorpse },
935+
{ "AllLootRemovedFromCorpse", &LuaCreature::AllLootRemovedFromCorpse },
935936
{ "DespawnOrUnsummon", &LuaCreature::DespawnOrUnsummon },
936937
{ "Respawn", &LuaCreature::Respawn },
937938
{ "AttackStart", &LuaCreature::AttackStart },

src/LuaEngine/methods/CreatureMethods.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,15 @@ namespace LuaCreature
11571157
return 0;
11581158
}
11591159

1160+
/**
1161+
* Handles this [Creature]'s corpse state after all loot is removed.
1162+
*/
1163+
int AllLootRemovedFromCorpse(lua_State* /*L*/, Creature* creature)
1164+
{
1165+
creature->AllLootRemovedFromCorpse();
1166+
return 0;
1167+
}
1168+
11601169
/**
11611170
* Sets the time it takes for the [Creature]'s corpse to despawn when killed.
11621171
*

0 commit comments

Comments
 (0)