mirror of
https://github.com/azerothcore/mod-ale
synced 2025-12-01 21:15:19 +08:00
Add forgotten changes from a49f6f03ac
This commit is contained in:
@@ -37,7 +37,10 @@ struct ElunaCreatureAI : ScriptedAI
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
if (justSpawned)
|
if (justSpawned)
|
||||||
|
{
|
||||||
|
justSpawned = false;
|
||||||
JustRespawned();
|
JustRespawned();
|
||||||
|
}
|
||||||
|
|
||||||
if (!sEluna->UpdateAI(me, diff))
|
if (!sEluna->UpdateAI(me, diff))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -279,9 +279,7 @@ ElunaRegister<Unit> UnitMethods[] =
|
|||||||
{ "GetVehicleKit", &LuaUnit::GetVehicleKit }, // :GetVehicleKit() - Gets unit's Vehicle kit if the unit is a vehicle
|
{ "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
|
// {"GetVehicle", &LuaUnit::GetVehicle}, // :GetVehicle() - Gets the Vehicle kit of the vehicle the unit is on
|
||||||
#endif
|
#endif
|
||||||
#ifdef MANGOS
|
|
||||||
{ "GetMovementType", &LuaUnit::GetMovementType },
|
{ "GetMovementType", &LuaUnit::GetMovementType },
|
||||||
#endif
|
|
||||||
|
|
||||||
// Setters
|
// Setters
|
||||||
{ "SetFaction", &LuaUnit::SetFaction }, // :SetFaction(factionId) - Sets the unit's faction
|
{ "SetFaction", &LuaUnit::SetFaction }, // :SetFaction(factionId) - Sets the unit's faction
|
||||||
|
|||||||
Reference in New Issue
Block a user