Skip to content

Commit a8dd2d1

Browse files
Add files via upload
1 parent 6821d7f commit a8dd2d1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

A_Swing_Prediction.lua

+13
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ local chargeLeft = nil
241241
local onGround = nil
242242
local CurrentTarget = nil
243243
local aimposVis = nil
244+
local tickCounterrecharge = 0
244245

245246
local settings = {
246247
MinDistance = 0,
@@ -1004,6 +1005,18 @@ end
10041005

10051006
---------------critHack------------------
10061007
-- Main logic
1008+
1009+
-- Trigger recharge if warp ticks are less than 23
1010+
if Menu.Misc.InstantAttack and warp.GetChargedTicks() < 23 and not warp.IsWarping()
1011+
and not can_attack and not can_charge then
1012+
if tickCounterrecharge >= 66 then
1013+
warp.TriggerCharge()
1014+
tickCounterrecharge = 0
1015+
else
1016+
tickCounterrecharge = tickCounterrecharge + 1
1017+
end
1018+
end
1019+
10071020
if CurrentTarget == nil then
10081021
local CritValue = 39 -- Base value for crit token bucket calculation
10091022
local CritBucket = pWeapon:GetCritTokenBucket()

0 commit comments

Comments
 (0)