Detect for 5 maelstrom weapon stacks, then use chain lightning, wait thats in the main post, lemme try it out
Made a worknig set of macros, will post soon."
Will use Lava lash, Stormstrike, Flameshock whenever off cooldown. Will use chain lightening on 5 maelstrom stacks. Will put down totems for you. All i need is to find out how to check if a buff only has a certain amount of time left on it, say 10 seconds left, cast a spell.
Macro "1"
Code:
/run local _,d,_ = GetSpellCooldown("Stormstrike") if (d == 0) then CastSpellByName("Stormstrike") end
/run local _,_,_,c,_,_,_,_,_=UnitBuff("Player","Maelstrom Weapon"); if (c==5 ) then CastSpellByName("Chain Lightning") else RunMacro ("2") end
Macro "2"
Code:
/run if not UnitBuff("player", "Windfury Totem") then CastSpellByName("Call of the Elements") end
/run local _,_,_,c,_,_,_,_,_=UnitBuff("Player","Maelstrom Weapon"); if (c==5 ) then CastSpellByName("Chain Lightning") else RunMacro ("3") end
Macro "3"
Code:
/run local _,d,_ = GetSpellCooldown("Flame Shock") if (d == 0) then CastSpellByName("Flame Shock") end
/run local _,_,_,c,_,_,_,_,_=UnitBuff("Player","Maelstrom Weapon"); if (c==5 ) then CastSpellByName("Chain Lightning") else RunMacro ("4") end
Macro "4"
Code:
/run local _,d,_ = GetSpellCooldown("Lava Lash") if (d == 0) then CastSpellByName("Lava Lash") end
/run local _,_,_,c,_,_,_,_,_=UnitBuff("Player","Maelstrom Weapon"); if (c==5 ) then CastSpellByName("Chain Lightning") else RunMacro ("1") end
I put the maelstrom buff check in every macro so that itll be as instantanious as possible.