mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna add new hook (need to think where to place this) and corrected Power functions
This commit is contained in:
10
LuaEngine.h
10
LuaEngine.h
@@ -675,6 +675,8 @@ public:
|
||||
void OnPlayerEnter(Map* map, Player* player);
|
||||
void OnPlayerLeave(Map* map, Player* player);
|
||||
void OnUpdate(Map* map, uint32 diff);
|
||||
void OnRemove(Map* map, Creature* creature);
|
||||
void OnRemove(Map* map, GameObject* gameobject);
|
||||
|
||||
/* World */
|
||||
void OnOpenStateChange(bool open);
|
||||
@@ -1063,13 +1065,9 @@ public:
|
||||
{
|
||||
T* obj = Eluna::CHECKOBJ<T>(L, 1); // get self
|
||||
if (obj)
|
||||
{
|
||||
lua_pushfstring(L, "%s: (%p)", tname, obj);
|
||||
return 1;
|
||||
}
|
||||
lua_pushnil(L);
|
||||
lua_replace(L, 1);
|
||||
luaL_tolstring(L, 1, NULL);
|
||||
else
|
||||
lua_pushstring(L, "nil");
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user