续上一块的das不再计一次操作次数
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user