new
This commit is contained in:
parent
228024dca4
commit
ff43ac94e7
22
main.lua
22
main.lua
@ -2,9 +2,13 @@ local textures = {}
|
|||||||
|
|
||||||
textures['Serpent Sting'] = 'Ability_Hunter_Quickshot'
|
textures['Serpent Sting'] = 'Ability_Hunter_Quickshot'
|
||||||
textures['Hunter\'s Mark'] = 'Ability_Hunter_SniperShot'
|
textures['Hunter\'s Mark'] = 'Ability_Hunter_SniperShot'
|
||||||
|
textures['Kill Command'] = 'ability_hunter_killcommand'
|
||||||
|
textures['Baited Shot'] = 'inv_misc_food_66'
|
||||||
textures['Arcane Shot'] = 'Ability_ImpalingBolt'
|
textures['Arcane Shot'] = 'Ability_ImpalingBolt'
|
||||||
|
textures['Multi-Shot'] = 'Ability_UpgradeMoonGlaive'
|
||||||
textures['Concussive Shot'] = 'Spell_Frost_Stun'
|
textures['Concussive Shot'] = 'Spell_Frost_Stun'
|
||||||
textures['Throw'] = 'Ability_Throw'
|
textures['Throw'] = 'Ability_Throw'
|
||||||
|
textures['Blood Fury'] = 'Racial_Orc_BerserkerStrength'
|
||||||
|
|
||||||
local function getTexture(spellName)
|
local function getTexture(spellName)
|
||||||
if textures[spellName] ~= nil then
|
if textures[spellName] ~= nil then
|
||||||
@ -103,9 +107,9 @@ local function attack()
|
|||||||
elseif UnitIsPlayer('target') == 1 then
|
elseif UnitIsPlayer('target') == 1 then
|
||||||
ClearTarget()
|
ClearTarget()
|
||||||
return
|
return
|
||||||
elseif UnitHealth('target') ~= UnitHealthMax('target') and UnitIsUnit('player', 'targettarget') == nil then
|
-- elseif UnitHealth('target') ~= UnitHealthMax('target') and UnitIsUnit('player', 'targettarget') == nil then
|
||||||
ClearTarget()
|
-- ClearTarget()
|
||||||
return
|
-- return
|
||||||
end
|
end
|
||||||
|
|
||||||
local mana = UnitMana('player')
|
local mana = UnitMana('player')
|
||||||
@ -119,6 +123,16 @@ local function attack()
|
|||||||
else
|
else
|
||||||
if isUsable('Hunter\'s Mark') and not buffed('Hunter\'s Mark', 'target') then
|
if isUsable('Hunter\'s Mark') and not buffed('Hunter\'s Mark', 'target') then
|
||||||
cast('Hunter\'s Mark')
|
cast('Hunter\'s Mark')
|
||||||
|
elseif isUsable('Blood Fury') and not onCooldown('Blood Fury') then
|
||||||
|
cast('Blood Fury')
|
||||||
|
elseif isUsable('Baited Shot') and not onCooldown('Baited Shot') then
|
||||||
|
cast('Baited Shot')
|
||||||
|
elseif isUsable('Kill Command') and not onCooldown('Kill Command') then
|
||||||
|
cast('Kill Command')
|
||||||
|
elseif isUsable('Arcane Shot') and not onCooldown('Arcane Shot') then
|
||||||
|
cast('Arcane Shot(Rank 1)')
|
||||||
|
elseif isUsable('Multi-Shot') and not onCooldown('Multi-Shot') then
|
||||||
|
cast('Multi-Shot')
|
||||||
elseif not IsAutoRepeatAction(47) then
|
elseif not IsAutoRepeatAction(47) then
|
||||||
cast('Auto Shot')
|
cast('Auto Shot')
|
||||||
elseif isUsable('Serpent Sting') and not buffed('Serpent Sting', 'target') and
|
elseif isUsable('Serpent Sting') and not buffed('Serpent Sting', 'target') and
|
||||||
@ -126,8 +140,6 @@ local function attack()
|
|||||||
cast('Serpent Sting')
|
cast('Serpent Sting')
|
||||||
elseif isUsable('Concussive Shot') and not onCooldown('Concussive Shot') then
|
elseif isUsable('Concussive Shot') and not onCooldown('Concussive Shot') then
|
||||||
cast('Concussive Shot')
|
cast('Concussive Shot')
|
||||||
elseif isUsable('Arcane Shot') and not onCooldown('Arcane Shot') then
|
|
||||||
cast('Arcane Shot')
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user