续上一块的das不再计一次操作次数

This commit is contained in:
MrZ_26
2023-09-19 12:12:18 +08:00
parent dd8a810591
commit 6a4dfb47bb

View File

@@ -377,13 +377,10 @@ function Player:act_insLeft(auto)
self.swingOffset.vx=-1.5 self.swingOffset.vx=-1.5
end end
if auto then if auto then
if self.ctrlCount==0 then self:_triggerEvent('hook_left_auto')
self.ctrlCount=1
end
else else
self.ctrlCount=self.ctrlCount+1 self.ctrlCount=self.ctrlCount+1
end end
if auto then self:_triggerEvent('hook_left_auto') end
end end
function Player:act_insRight(auto) function Player:act_insRight(auto)
if not self.control then return end if not self.control then return end
@@ -404,13 +401,10 @@ function Player:act_insRight(auto)
self.swingOffset.vx=1.5 self.swingOffset.vx=1.5
end end
if auto then if auto then
if self.ctrlCount==0 then self:_triggerEvent('hook_right_auto')
self.ctrlCount=1
end
else else
self.ctrlCount=self.ctrlCount+1 self.ctrlCount=self.ctrlCount+1
end end
if auto then self:_triggerEvent('hook_right_auto') end
end end
function Player:act_insDown() function Player:act_insDown()
if not self.control then return end if not self.control then return end