Обновить OBWT.lua

This commit is contained in:
Олег Цветков 2025-07-29 11:40:04 -04:00
parent c09c67d851
commit 34c07a37f9

View File

@ -32,6 +32,7 @@ local function tank(cmd)
local revenge = 'Ability_Warrior_Revenge' local revenge = 'Ability_Warrior_Revenge'
local sunderArmor = 'Ability_Warrior_Sunder' local sunderArmor = 'Ability_Warrior_Sunder'
local rend = 'Ability_Gouge' local rend = 'Ability_Gouge'
local shieldBash = 'Ability_Warrior_ShieldBash'
local battleShout = 'Ability_Warrior_BattleShout' local battleShout = 'Ability_Warrior_BattleShout'
local heroicStrike = 'Ability_Rogue_Ambush' local heroicStrike = 'Ability_Rogue_Ambush'
if UnitExists('target') and UnitCanAttack('player','target') then if UnitExists('target') and UnitCanAttack('player','target') then
@ -40,12 +41,14 @@ local function tank(cmd)
CastSpellByName('Bloodrage') CastSpellByName('Bloodrage')
elseif buffed('Battle Shout') == nil and isUsable(battleShout) then elseif buffed('Battle Shout') == nil and isUsable(battleShout) then
CastSpellByName('Battle Shout') CastSpellByName('Battle Shout')
elseif isUsable(shieldBash) then
CastSpellByName('Shield Bash')
elseif buffed('Shield Block') == nil then
CastSpellByName('Shield Block')
elseif isUsable(revenge) then elseif isUsable(revenge) then
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('Shield Block') == nil then
CastSpellByName('Shield Block')
elseif rage > 60 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