Add forgotten changes from a49f6f03ac

This commit is contained in:
Rochet2
2015-07-30 19:54:16 +03:00
parent a49f6f03ac
commit f62c655d40
2 changed files with 3 additions and 2 deletions

View File

@@ -37,7 +37,10 @@ struct ElunaCreatureAI : ScriptedAI
#endif
{
if (justSpawned)
{
justSpawned = false;
JustRespawned();
}
if (!sEluna->UpdateAI(me, diff))
{

View File

@@ -279,9 +279,7 @@ ElunaRegister<Unit> 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