mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix TC jump method
This commit is contained in:
@@ -2182,7 +2182,9 @@ namespace LuaUnit
|
|||||||
float zSpeed = Eluna::CHECKVAL<float>(L, 5);
|
float zSpeed = Eluna::CHECKVAL<float>(L, 5);
|
||||||
float maxHeight = Eluna::CHECKVAL<float>(L, 6);
|
float maxHeight = Eluna::CHECKVAL<float>(L, 6);
|
||||||
uint32 id = Eluna::CHECKVAL<uint32>(L, 7, 0);
|
uint32 id = Eluna::CHECKVAL<uint32>(L, 7, 0);
|
||||||
unit->GetMotionMaster()->MoveJump(x, y, z, zSpeed, maxHeight, id);
|
|
||||||
|
Position pos(x, y, z);
|
||||||
|
unit->GetMotionMaster()->MoveJump(pos, zSpeed, maxHeight, id);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user