mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna fix problem with reloading timed events
This commit is contained in:
@@ -645,7 +645,7 @@ namespace LuaWorldObject
|
||||
int RemoveEventById(Eluna* /*E*/, lua_State* L, WorldObject* obj)
|
||||
{
|
||||
int eventId = Eluna::CHECKVAL<int>(L, 2);
|
||||
obj->elunaEvents->RemoveEvent(eventId);
|
||||
obj->elunaEvents->SetState(eventId, LUAEVENT_STATE_ABORT);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -655,7 +655,7 @@ namespace LuaWorldObject
|
||||
*/
|
||||
int RemoveEvents(Eluna* /*E*/, lua_State* /*L*/, WorldObject* obj)
|
||||
{
|
||||
obj->elunaEvents->RemoveEvents();
|
||||
obj->elunaEvents->SetStates(LUAEVENT_STATE_ABORT);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user