From f62c655d40d90921e79af6c17bf38000d4f26daf Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Thu, 30 Jul 2015 19:54:16 +0300 Subject: [PATCH] Add forgotten changes from https://github.com/ElunaLuaEngine/Eluna/commit/a49f6f03ac3c3ee3579d73f83a4c3001cb1fc9a4 --- ElunaCreatureAI.h | 3 +++ LuaFunctions.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ElunaCreatureAI.h b/ElunaCreatureAI.h index 8462303..1f8c794 100644 --- a/ElunaCreatureAI.h +++ b/ElunaCreatureAI.h @@ -37,7 +37,10 @@ struct ElunaCreatureAI : ScriptedAI #endif { if (justSpawned) + { + justSpawned = false; JustRespawned(); + } if (!sEluna->UpdateAI(me, diff)) { diff --git a/LuaFunctions.cpp b/LuaFunctions.cpp index 7567219..34be66e 100644 --- a/LuaFunctions.cpp +++ b/LuaFunctions.cpp @@ -279,9 +279,7 @@ ElunaRegister UnitMethods[] = { "GetVehicleKit", &LuaUnit::GetVehicleKit }, // :GetVehicleKit() - Gets unit's Vehicle kit if the unit is a vehicle // {"GetVehicle", &LuaUnit::GetVehicle}, // :GetVehicle() - Gets the Vehicle kit of the vehicle the unit is on #endif -#ifdef MANGOS { "GetMovementType", &LuaUnit::GetMovementType }, -#endif // Setters { "SetFaction", &LuaUnit::SetFaction }, // :SetFaction(factionId) - Sets the unit's faction