mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Allow temporary event handlers for all events.
This allows you to register a handler to only fire N times. Dynamic event handler binding/unbinding is now possible. For backwards compatibility, if the number of shots is missing, the event handler will never be removed from the event.
This commit is contained in:
@@ -154,7 +154,7 @@ public:
|
||||
|
||||
static void report(lua_State*);
|
||||
void ExecuteCall(int params, int res);
|
||||
void Register(uint8 reg, uint32 id, uint32 evt, int func);
|
||||
void Register(uint8 reg, uint32 id, uint32 evt, int func, uint32 shots);
|
||||
void RunScripts();
|
||||
void InvalidateObjects();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user