mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix Eluna events being twice as fast (#275)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user