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:
@@ -2060,8 +2060,12 @@ namespace LuaUnit
|
||||
*/
|
||||
int MoveExpire(lua_State* L, Unit* unit)
|
||||
{
|
||||
#ifdef TRINITY
|
||||
unit->GetMotionMaster()->Clear();
|
||||
#else
|
||||
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);
|
||||
unit->GetMotionMaster()->MovementExpired(reset);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -2072,8 +2076,12 @@ namespace LuaUnit
|
||||
*/
|
||||
int MoveClear(lua_State* L, Unit* unit)
|
||||
{
|
||||
#ifdef TRINITY
|
||||
unit->GetMotionMaster()->Clear();
|
||||
#else
|
||||
bool reset = Eluna::CHECKVAL<bool>(L, 2, true);
|
||||
unit->GetMotionMaster()->Clear(reset);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user