Skip to content

Commit

Permalink
[Core] fix ISSUE[#7 (comment)]
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-tz committed Apr 14, 2024
1 parent 51aa9f4 commit 37589b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ZBin/lua_scripts/skill/GoCmuRush.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ function GoCmuRush(task)

task_param = TaskT:new_local()
task_param.executor = runner
task_param.player.pos = mpos
task_param.player.pos = CGeoPoint(mpos)
task_param.player.angle = mdir
task_param.player.flag = mflag
task_param.ball.Sender = msender or 0
task_param.player.max_acceleration = macc or 0
task_param.player.vel = mvel
task_param.player.vel = CVector(mvel)
task_param.player.force_manual_set_running_param = mforce_maunal_set_running_param
-- return CGoCmuRush(runner, mpos:x(), mpos:y(), mdir, mflag, msender, macc, mrec, mvel:x(), mvel:y(), mspeed, mforce_maunal_set_running_param)
return skillapi:run("SmartGoto", task_param)
Expand Down
2 changes: 1 addition & 1 deletion ZBin/lua_scripts/skill/RunMultiPos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function RunMultiPos(task)

task_param = TaskT:new_local()
task_param.executor = runner
task_param.player.pos = mpos[curIndex]
task_param.player.pos = CGeoPoint(mpos[curIndex])
task_param.player.angle = mdir
task_param.player.flag = mflag
task_param.ball.Sender = msender or 0
Expand Down
2 changes: 1 addition & 1 deletion ZBin/lua_scripts/skill/SimpleGoto.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function SimpleGoto(task)

task_param = TaskT:new_local()
task_param.executor = runner
task_param.player.pos = mpos
task_param.player.pos = CGeoPoint(mpos)
task_param.player.angle = mdir
task_param.player.flag = mflag
-- return SimpleGotoPos(runner, mpos:x(), mpos:y(), mdir, mflag)
Expand Down

0 comments on commit 37589b6

Please sign in to comment.