Skip to content

Commit

Permalink
Update UnitMethods.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Niam5 committed Aug 8, 2024
1 parent fa1d092 commit cdd57a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions methods/CMangos/UnitMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -1950,12 +1950,12 @@ namespace LuaUnit
float maxHeight = E->CHECKVAL<float>(6);
uint32 id = E->CHECKVAL<uint32>(7, 0);

//#if (defined(WOTLK) || defined(CATA))
/ unit->GetMotionMaster()->MoveJump(x, y, z, zSpeed, maxHeight, id);
//#else
#if ELUNA_EXPANSION >= WOTLK
unit->GetMotionMaster()->MoveJump(x, y, z, zSpeed, maxHeight, id);
#else
Position pos(x, y, z);
unit->GetMotionMaster()->MoveJump(pos, zSpeed, maxHeight, id);
//#endif
#endif
return 0;
}
#endif
Expand Down

0 comments on commit cdd57a0

Please sign in to comment.