diff --git a/main.lua b/main.lua index 319a441..b3f0c92 100644 --- a/main.lua +++ b/main.lua @@ -2,9 +2,13 @@ local textures = {} textures['Serpent Sting'] = 'Ability_Hunter_Quickshot' 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['Multi-Shot'] = 'Ability_UpgradeMoonGlaive' textures['Concussive Shot'] = 'Spell_Frost_Stun' textures['Throw'] = 'Ability_Throw' +textures['Blood Fury'] = 'Racial_Orc_BerserkerStrength' local function getTexture(spellName) if textures[spellName] ~= nil then @@ -103,9 +107,9 @@ local function attack() elseif UnitIsPlayer('target') == 1 then ClearTarget() return - elseif UnitHealth('target') ~= UnitHealthMax('target') and UnitIsUnit('player', 'targettarget') == nil then - ClearTarget() - return + -- elseif UnitHealth('target') ~= UnitHealthMax('target') and UnitIsUnit('player', 'targettarget') == nil then + -- ClearTarget() + -- return end local mana = UnitMana('player') @@ -119,6 +123,16 @@ local function attack() else if isUsable('Hunter\'s Mark') and not buffed('Hunter\'s Mark', 'target') then 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 cast('Auto Shot') elseif isUsable('Serpent Sting') and not buffed('Serpent Sting', 'target') and @@ -126,8 +140,6 @@ local function attack() cast('Serpent Sting') elseif isUsable('Concussive Shot') and not onCooldown('Concussive Shot') then cast('Concussive Shot') - elseif isUsable('Arcane Shot') and not onCooldown('Arcane Shot') then - cast('Arcane Shot') end end end