add bear_solo
This commit is contained in:
parent
67505bf23d
commit
e3118373ca
58
main.lua
58
main.lua
@ -6,6 +6,12 @@ textures['Ferocious Bite'] = 'Ability_Druid_FerociousBite'
|
||||
textures['Tiger\'s Fury'] = 'Ability_Mount_JungleTiger'
|
||||
textures['Faerie Fire (Feral)'] = 'Spell_Nature_FaerieFire'
|
||||
textures['Rake'] = 'Ability_Druid_Disembowel'
|
||||
textures['Enrage'] = 'Ability_Druid_Enrage'
|
||||
textures['Maul'] = 'Ability_Druid_Maul'
|
||||
textures['Savage Bite'] = 'Ability_Racial_Cannibalize'
|
||||
textures['Demoralizing Roar'] = 'Ability_Druid_DemoralizingRoar'
|
||||
textures['Shred'] = 'Spell_Shadow_VampiricAura'
|
||||
textures['Reshift'] = 'spell_reshift_2'
|
||||
|
||||
local function getTexture(spellName)
|
||||
if textures[spellName] ~= nil then
|
||||
@ -104,9 +110,9 @@ local function attack()
|
||||
elseif UnitIsDead('target') == 1 then
|
||||
ClearTarget()
|
||||
return
|
||||
elseif UnitIsPlayer('target') == 1 then
|
||||
ClearTarget()
|
||||
return
|
||||
-- elseif UnitIsPlayer('target') == 1 then
|
||||
-- ClearTarget()
|
||||
-- return
|
||||
end
|
||||
|
||||
local mana = UnitMana('player')
|
||||
@ -116,7 +122,8 @@ local function attack()
|
||||
AttackTarget()
|
||||
else
|
||||
cast('Faerie Fire (Feral)')
|
||||
|
||||
-- if isUsable('Reshift') and mana <= 60 and not buffed('Tiger\'s Fury', 'player') then
|
||||
-- cast('Reshift')
|
||||
if isUsable('Faerie Fire (Feral)') and not buffed('Faerie Fire (Feral)', 'target') and
|
||||
not onCooldown('Faerie Fire (Feral)') then
|
||||
cast('Faerie Fire (Feral)()')
|
||||
@ -126,6 +133,10 @@ local function attack()
|
||||
cast('Ferocious Bite')
|
||||
elseif isUsable('Rake') and not buffed('Rake', 'target') then
|
||||
cast('Rake')
|
||||
elseif isUsable('Rip') and comboPoints() > 0 and not buffed('Rip', 'target') then
|
||||
cast('Rip')
|
||||
-- elseif isUsable('Shred') then
|
||||
-- cast('Shred')
|
||||
elseif isUsable('Claw') then
|
||||
cast('Claw')
|
||||
-- elseif isUsable('Blood Fury') and not onCooldown('Blood Fury') then
|
||||
@ -152,7 +163,46 @@ local function attack()
|
||||
end
|
||||
end
|
||||
|
||||
local function bear_solo()
|
||||
if GetUnitName('target') == nil then
|
||||
TargetNearestEnemy()
|
||||
return
|
||||
else
|
||||
if UnitCanAttack('player', 'target') == nil then
|
||||
ClearTarget()
|
||||
return
|
||||
elseif UnitIsDead('target') == 1 then
|
||||
ClearTarget()
|
||||
return
|
||||
end
|
||||
|
||||
local mana = UnitMana('player')
|
||||
local health = UnitHealth('player')
|
||||
|
||||
if (not PlayerFrame.inCombat) then
|
||||
AttackTarget()
|
||||
else
|
||||
if isUsable('Reshift') and mana <= 30 then
|
||||
cast('Reshift')
|
||||
elseif isUsable('Savage Bite') and not onCooldown('Savage Bite') then
|
||||
cast('Savage Bite')
|
||||
elseif isUsable('Enrage') and not buffed('Enrage', 'player') and not onCooldown('Enrage') then
|
||||
cast('Enrage')
|
||||
elseif isUsable('Faerie Fire (Feral)') and not buffed('Faerie Fire (Feral)', 'target') and
|
||||
not onCooldown('Faerie Fire (Feral)') then
|
||||
cast('Faerie Fire (Feral)()')
|
||||
elseif isUsable('Demoralizing Roar') and not buffed('Demoralizing Roar', 'target') then
|
||||
cast('Demoralizing Roar')
|
||||
elseif isUsable('Maul') then
|
||||
cast('Maul')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function obd_onLoad()
|
||||
SlashCmdList['OBD'] = attack
|
||||
SlashCmdList['OBDB'] = bear_solo
|
||||
SLASH_OBD1 = '/obd_lvl'
|
||||
SLASH_OBDB1 = '/obd_bear_solo'
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user