-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWhitePaws.lua
executable file
·80 lines (72 loc) · 2.01 KB
/
WhitePaws.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
local addonName, wc = ...
--公共函数
--输出,自动解定身减速,考虑延迟和能量延迟,tbc有用,wlk弃用
function dps(cost, mana)
if not wc.strongControl and wc.enoughMana(mana) and (wc.needUnroot() or wc.ableShift() and not wc.enoughEnergywithNextTickwithDelay(cost)) then
SetCVar('autoUnshift', 1)
else
SetCVar('autoUnshift', 0)
end
end
--变身
function shift(r, e, m)
r = r or 200
e = e or 200
if not wc.strongControl and wc.enoughMana(m) and not wc.getShiftGCD() and (wc.needUnroot() or wc.getRage() < r and wc.getEnergy() < e) then
SetCVar('autoUnshift', 1)
else
SetCVar('autoUnshift', 0)
end
end
--吃红,tbc有用,wlk弃用
--9634巨熊形态
function hppot()
local u,n = IsUsableSpell(9634)
if wc.getShiftGCD() or wc.strongControl or not u
then SetCVar('autoUnshift', 0)
else
SetCVar('autoUnshift', 1)
end
end
--变形金刚-变熊
function bxjgx(e)
if not wc.strongControl and wc.enoughMana() and not wc.getShiftGCD() and not wc.enoughEnergy(e) and not wc.getBuff(50334) and wc.getBuffTime(52610) > 5 and wc.getComboPoint() < 4 then
SetCVar('autoUnshift', 1)
else
SetCVar('autoUnshift', 0)
end
end
--变形金刚-激怒变熊
-- 52610 野蛮咆哮
-- 50213 猛虎之怒
-- 5229 激怒
-- 50334 狂暴
function jnbxjgx(e)
if not wc.strongControl and wc.enoughMana() and not wc.getShiftGCD() and not wc.enoughEnergy(e) and not wc.getBuff(50334) and GetSpellCooldown(5229) == 0 then
SetCVar('autoUnshift', 1)
else
SetCVar('autoUnshift', 0)
end
end
--变形金刚-变猫
function bxjgm(e)
if not wc.strongControl and wc.enoughMana() and (wc.needUnroot() or wc.enoughEnergy(e)) then
if not wc.getShiftGCD() then
SetCVar('autoUnshift', 1)
else
cancelQueue = 1
SetCVar('autoUnshift', 0)
end
else
SetCVar('autoUnshift', 0)
end
end
--结束
function wcEnd()
if cancelQueue == 1 then
SpellCancelQueuedSpell()
cancelQueue = 0
end
SetCVar('autoUnshift', 1)
UIErrorsFrame:Clear()
end