Обновить OBWT.lua
This commit is contained in:
parent
ba2a64b6f7
commit
c09c67d851
44
OBWT.lua
44
OBWT.lua
@ -1,6 +1,7 @@
|
|||||||
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
|
||||||
@ -25,7 +26,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
|
||||||
|
|
||||||
local function main(cmd)
|
local function tank(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'
|
||||||
@ -43,9 +44,9 @@ local function main(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 > 60 and buffed('Shield Block') == nil then
|
elseif rage > 50 and buffed('Shield Block') == nil then
|
||||||
CastSpellByName('Shield Block')
|
CastSpellByName('Shield Block')
|
||||||
elseif rage > 70 and buffed('Demoralizing Shout', 'target') == nil then
|
elseif rage > 60 and buffed('Demoralizing Shout', 'target') == nil then
|
||||||
CastSpellByName('Demoralizing Shout')
|
CastSpellByName('Demoralizing Shout')
|
||||||
elseif rage > 80 and buffed('Rend', 'target') == nil and isUsable(rend) then
|
elseif rage > 80 and buffed('Rend', 'target') == nil and isUsable(rend) then
|
||||||
CastSpellByName('Rend')
|
CastSpellByName('Rend')
|
||||||
@ -55,7 +56,38 @@ local function main(cmd)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function OBWT_OnLoad()
|
local function dps(cmd)
|
||||||
SlashCmdList["OBWT"] = main
|
local rage = UnitMana('player')
|
||||||
SLASH_OBWT1 = "/obwt"
|
local bloodrage = 'Ability_Racial_BloodRage'
|
||||||
|
local rend = 'Ability_Gouge'
|
||||||
|
local battleShout = 'Ability_Warrior_BattleShout'
|
||||||
|
local heroicStrike = 'Ability_Rogue_Ambush'
|
||||||
|
local overpower = 'Ability_MeleeDamage'
|
||||||
|
local execute = 'INV_Sword_48'
|
||||||
|
local slam = 'Ability_Warrior_DecisiveStrike_New'
|
||||||
|
if UnitExists('target') and UnitCanAttack('player','target') then
|
||||||
|
if (not PlayerFrame.inCombat) then AttackTarget() end
|
||||||
|
if rage < 15 and isUsable(bloodrage) then
|
||||||
|
CastSpellByName('Bloodrage')
|
||||||
|
elseif buffed('Battle Shout') == nil and isUsable(battleShout) then
|
||||||
|
CastSpellByName('Battle Shout')
|
||||||
|
elseif isUsable(execute) then
|
||||||
|
CastSpellByName('Execute')
|
||||||
|
elseif isUsable(overpower) then
|
||||||
|
CastSpellByName('Overpower')
|
||||||
|
elseif isUsable(slam) then
|
||||||
|
CastSpellByName('Slam')
|
||||||
|
elseif buffed('Rend', 'target') == nil and isUsable(rend) then
|
||||||
|
CastSpellByName('Rend')
|
||||||
|
elseif isUsable(heroicStrike) then
|
||||||
|
CastSpellByName('Heroic Strike')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function OBWT_OnLoad()
|
||||||
|
SlashCmdList["OBWT"] = tank
|
||||||
|
SlashCmdList["OBWF"] = dps
|
||||||
|
SLASH_OBWT1 = "/obwt"
|
||||||
|
SLASH_OBWF1 = "/obwf"
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user