Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Implement PQR_resumeAttack.. this is used to prevent
- --abilities lower in the rotation from being cast.
- if PQR_resumeAttack == nil then
- PQR_resumeAttack = 0
- elseif PQR_resumeAttack > GetTime() then
- return true
- else
- PQR_resumeAttack = 0
- end
- for i=1,4 do
- local bossCheck = "boss"..i
- if UnitExists(bossCheck) then
- local npcID = tonumber(UnitGUID(bossCheck):sub(6,10), 16)
- local bossCasting,_,_,_,_,castEnd = UnitCastingInfo(bossCheck)
- if npcID == 62511 or npcID == 62711 then --Amber-Shaper Un'sok or Amber Monstrosity
- local reshapeLife = UnitDebuffID("vehicle", 122370)
- local reshapeLife2 = UnitDebuffID("player", 122370)
- if reshapeLife or reshapeLife2 then
- local playerCasting = UnitCastingInfo("vehicle")
- local playerCasting2 = UnitCastingInfo("player")
- --grab spell names for abilities:
- local amberExplosion = GetSpellInfo(122402)
- --interrupt the target if casting amber explosion
- if bossCasting == amberExplosion then
- TargetUnit(bossCheck)
- --Press the 1st button (Amber Strike)
- RunMacroText("/click OverrideActionBarButton1")
- end
- --interrupt self if casting amber explosion
- if playerCasting == amberExplosion then
- --Press the 2nd button (Struggle for Control)
- RunMacroText("/click OverrideActionBarButton2")
- end
- --interrupt self if casting amber explosion
- if playerCasting2 == amberExplosion then
- --Press the 2nd button (Struggle for Control)
- RunMacroText("/click OverrideActionBarButton2")
- end
- return true --prevent the rotation from executing while reshaped
- end
Advertisement
Add Comment
Please, Sign In to add comment