Skip to content

Instantly share code, notes, and snippets.

@brandonjank
Last active August 29, 2015 14:04
Show Gist options
  • Save brandonjank/85b08a0bf5ca11eeb61a to your computer and use it in GitHub Desktop.
Save brandonjank/85b08a0bf5ca11eeb61a to your computer and use it in GitHub Desktop.
-- Schmoe's Feral Death Knight Mage Rotation
-- Import
local Actions, Receivers, Modifiers = Device.actions, Device.recivers, Device.modifiers
-- Actions
local spell, pause = Actions:Spell, Actions:Pause
-- Recivers
local unit, ground = Receivers:Unit, Receivers:Ground
-- Modifiers
local key, mouse, toggle = Modifiers:Key, Modifiers:Mouse, Modifiers:Toggle
-- Shortcuts
local target, pet, focus, player, mouseover = unit('target'), unit('pet'), unit('focus'), unit('player'), unit('mouseover')
-- Rotation settings
local apiversion = "1.0.0-alpha"
local rotationversion = "1.0.0-alpha"
local class = 'MAGE'
local spec = 'FROST'
-- UI toggles
local toggles = {
-- {id, icon, title, description},
{'aoemode', 'Interface\\Icons\\ability_upgrademoonglaive', 'AoE Mode', 'Click to toggle in and out of AOE mode.'},
}
-- Combat rotation
local combat = {
pause('Pause Rotation', function() -- Pause the rotation while key is held down
return key('lcontrol') -- Pause Key
end),
macro('/targetenemy [dead]', function() -- Target next enemy if target is dead
return target:exists() and target:dead()
end),
-- Interrupts
spell(12345, target, function() -- Interrupt target's spell
return target:randinterrupt()
end),
spell(12345, focus, function() -- Interrupt focus's spell
return focus:randinterrupt()
end),
-- Spells
spell(12345, target, function() -- Cast AOE spell
return toggle('aoemode')
end),
spell(12345, target, function() -- Cast a spell
return true
end),
...
}
-- Out of combat rotation
local nocombat = {
-- blah blah
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment