续上一块的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
end
if auto then
if self.ctrlCount==0 then
self.ctrlCount=1
end
self:_triggerEvent('hook_left_auto')
else
self.ctrlCount=self.ctrlCount+1
end
if auto then self:_triggerEvent('hook_left_auto') end
end
function Player:act_insRight(auto)
if not self.control then return end
@@ -404,13 +401,10 @@ function Player:act_insRight(auto)
self.swingOffset.vx=1.5
end
if auto then
if self.ctrlCount==0 then
self.ctrlCount=1
end
self:_triggerEvent('hook_right_auto')
else
self.ctrlCount=self.ctrlCount+1
end
if auto then self:_triggerEvent('hook_right_auto') end
end
function Player:act_insDown()
if not self.control then return end