mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC build after 982643cd96
This commit is contained in:
@@ -3301,13 +3301,16 @@ namespace LuaPlayer
|
|||||||
float o = Eluna::CHECKVAL<float>(L, 6);
|
float o = Eluna::CHECKVAL<float>(L, 6);
|
||||||
#ifndef TRINITY
|
#ifndef TRINITY
|
||||||
if (player->IsTaxiFlying())
|
if (player->IsTaxiFlying())
|
||||||
#else
|
|
||||||
if (player->IsInFlight())
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
player->GetMotionMaster()->MovementExpired();
|
player->GetMotionMaster()->MovementExpired();
|
||||||
player->m_taxi.ClearTaxiDestinations();
|
player->m_taxi.ClearTaxiDestinations();
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if (player->IsInFlight())
|
||||||
|
player->FinishTaxiFlight();
|
||||||
|
else
|
||||||
|
player->SaveRecallPosition();
|
||||||
|
#endif
|
||||||
Eluna::Push(L, player->TeleportTo(mapId, x, y, z, o));
|
Eluna::Push(L, player->TeleportTo(mapId, x, y, z, o));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2060,8 +2060,12 @@ namespace LuaUnit
|
|||||||
*/
|
*/
|
||||||
int MoveExpire(lua_State* L, Unit* unit)
|
int MoveExpire(lua_State* L, Unit* unit)
|
||||||
{
|
{
|
||||||
|
#ifdef TRINITY
|
||||||
|
unit->GetMotionMaster()->Clear();
|
||||||
|
#else
|
||||||
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);
|
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);
|
||||||
unit->GetMotionMaster()->MovementExpired(reset);
|
unit->GetMotionMaster()->MovementExpired(reset);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2072,8 +2076,12 @@ namespace LuaUnit
|
|||||||
*/
|
*/
|
||||||
int MoveClear(lua_State* L, Unit* unit)
|
int MoveClear(lua_State* L, Unit* unit)
|
||||||
{
|
{
|
||||||
|
#ifdef TRINITY
|
||||||
|
unit->GetMotionMaster()->Clear();
|
||||||
|
#else
|
||||||
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);
|
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);
|
||||||
unit->GetMotionMaster()->Clear(reset);
|
unit->GetMotionMaster()->Clear(reset);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user