From 4d44b6749d9e4747bfbbbb919d319148625a0c83 Mon Sep 17 00:00:00 2001 From: Traesh Date: Sat, 9 Aug 2025 17:24:43 +0200 Subject: [PATCH] Fix Eluna events being twice as fast (#275) --- src/ElunaLuaEngine_SC.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/ElunaLuaEngine_SC.cpp b/src/ElunaLuaEngine_SC.cpp index 9e1b6d4..dbe2300 100644 --- a/src/ElunaLuaEngine_SC.cpp +++ b/src/ElunaLuaEngine_SC.cpp @@ -1010,19 +1010,6 @@ public: } }; -class Eluna_UnitScript : public UnitScript -{ -public: - Eluna_UnitScript() : UnitScript("Eluna_UnitScript", true, { - UNITHOOK_ON_UNIT_UPDATE - }) { } - - void OnUnitUpdate(Unit* unit, uint32 diff) override - { - unit->elunaEvents->Update(diff); - } -}; - class Eluna_VehicleScript : public VehicleScript { public: @@ -1216,7 +1203,6 @@ void AddSC_ElunaLuaEngine() new Eluna_ServerScript(); new Eluna_SpellSC(); new Eluna_TicketScript(); - new Eluna_UnitScript(); new Eluna_VehicleScript(); new Eluna_WorldObjectScript(); new Eluna_WorldScript();