Обновить OBWT.lua
This commit is contained in:
parent
83aef914c9
commit
1424d881b5
18
OBWT.lua
18
OBWT.lua
@ -1,7 +1,6 @@
|
|||||||
local function getSlot(spellTexture)
|
local function getSlot(spellTexture)
|
||||||
for i = 1, 120, 1 do
|
for i = 1, 120, 1 do
|
||||||
if GetActionTexture(i) ~= nil then
|
if GetActionTexture(i) ~= nil then
|
||||||
print(GetActionTexture(i))
|
|
||||||
if(strfind(GetActionTexture(i), spellTexture)) then return i end
|
if(strfind(GetActionTexture(i), spellTexture)) then return i end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -26,9 +25,7 @@ local function debuffStacks(spellTexture)
|
|||||||
if stacks == nill then return 0 else return stacks end
|
if stacks == nill then return 0 else return stacks end
|
||||||
end
|
end
|
||||||
|
|
||||||
SLASH_OBWT1 = "/obwt"
|
local function main(cmd)
|
||||||
|
|
||||||
SlashCmdList.OBWT = function(cmd)
|
|
||||||
local rage = UnitMana('player')
|
local rage = UnitMana('player')
|
||||||
local bloodrage = 'Ability_Racial_BloodRage'
|
local bloodrage = 'Ability_Racial_BloodRage'
|
||||||
local revenge = 'Ability_Warrior_Revenge'
|
local revenge = 'Ability_Warrior_Revenge'
|
||||||
@ -46,10 +43,19 @@ SlashCmdList.OBWT = function(cmd)
|
|||||||
CastSpellByName('Revange')
|
CastSpellByName('Revange')
|
||||||
elseif isUsable(sunderArmor) and debuffStacks(sunderArmor) < 5 then
|
elseif isUsable(sunderArmor) and debuffStacks(sunderArmor) < 5 then
|
||||||
CastSpellByName('Sunder Armor')
|
CastSpellByName('Sunder Armor')
|
||||||
elseif rage > 50 and buffed('Rend', 'target') == nil and isUsable(rend) then
|
elseif rage > 60 and buffed('Shield Block') == nil then
|
||||||
|
CastSpellByName('Shield Block')
|
||||||
|
elseif rage > 70 and buffed('Demoralizing Shout', 'target') == nil then
|
||||||
|
CastSpellByName('Demoralizing Shout')
|
||||||
|
elseif rage > 80 and buffed('Rend', 'target') == nil and isUsable(rend) then
|
||||||
CastSpellByName('Rend')
|
CastSpellByName('Rend')
|
||||||
elseif rage > 70 and isUsable(heroicStrike) then
|
elseif rage > 90 and isUsable(heroicStrike) then
|
||||||
CastSpellByName('Heroic Strike')
|
CastSpellByName('Heroic Strike')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function OBWT_OnLoad()
|
||||||
|
SlashCmdList["OBWT"] = main
|
||||||
|
SLASH_OBWT1 = "/obwt"
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user