Macro for resto shaman

simple dps macro for Resto Shaman

local _, Sequences = ... -- This is a comment to keep the linter from marking this as unused.

Sequences['RestoShamanDPS'] = {
  Author="Dualayes",
  SpecID=264,
  Talents = "Any",
  Default=1,
  Icon='Spell_Nature_MagicImmunity',
  MacroVersions = {
    [1] = {
      StepFunction = [[
        limit = limit or 1
        if step == limit then
          limit = limit % #macros + 1
          step = 1
        else
          step = step % #macros + 1
        end
      ]],
      KeyPress={
        "/targetenemy [noharm][dead]",
        "/castsequence reset=target/combat Flame Shock, null",
        "/use [mod:alt] Unleash Elements",  -- Use Unleash Elements with ALT
      },
      PreMacro={
      },
      "/cast [mod:ctrl] Chain Lightning",  -- Use Chain Lightning when holding CTRL for AoE
      "/cast [mod:shift] Earth Shock",  -- Use Earth Shock when holding SHIFT
      "/castsequence reset=target/combat Flame Shock, Lava Burst, Lightning Bolt, Lightning Bolt, Lightning Bolt, Lava Burst",
      "/castsequence [mod:alt] reset=target/combat Flame Shock, Lava Burst, Lightning Bolt",  -- Alternate sequence with ALT
      PostMacro={
        "/cast Elemental Mastery",  -- Use Elemental Mastery if available for cooldown management
      },
      KeyRelease={
        "/startattack",
      },
    },
  },
}