Feat(LuaEngine/PlayerHooks): Add OnCanPlayerResurrect (#236)

This commit is contained in:
iThorgrim
2025-02-08 07:33:43 +01:00
committed by GitHub
parent ccfcc5f86f
commit 7511f38eab
5 changed files with 17 additions and 0 deletions

View File

@@ -706,3 +706,11 @@ void Eluna::OnCreatureKilledByPet(Player* player, Creature* killed)
Push(killed);
CallAllFunctions(PlayerEventBindings, key);
}
bool Eluna::CanPlayerResurrect(Player* player)
{
START_HOOK_WITH_RETVAL(PLAYER_EVENT_ON_CAN_RESURRECT, true);
Push(player);
return CallAllFunctionsBool(PlayerEventBindings, key);
}