Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?><WARRIOR><Ability><Name>--InitializePvE--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if PQR_RotationStarted == true then
- PQR_RotationStarted = false
- if PQR_LoadLua ~= nil
- then
- if PQR_LoadLua(&quot;PQR_failroadPvEdata.lua&quot;) == false
- then
- PQR_WriteToChat(&quot;Put PQR_failroadPvEdata.lua in the data folder.&quot;, &quot;Error&quot;)
- PQR_StopRotation()
- return true
- end
- end
- end
- --Options--
- useDR = true --use dragon roar automatically
- autoStance = false --auto force stances
- gagOrder = false --use heroic throw to interrupt
- autoBloodBath = true --automatic use bloodbath
- autoReck = false --automatic use Recklessness
- chargeInterrupt = true --Use charge to interrupt if not popping offensive cooldowns
- intPctDelay = 10 --Percentage of cast to let happen until interrupt.
- --EndOptions--
- ------------
- --Keybinds--
- ------------
- mockingBannerKey = IsRightShiftKeyDown()
- heroicLeapKey = IsLeftAltKeyDown()
- demoBannerKey = IsLeftShiftKeyDown()
- -- = IsRightShiftKeyDown()
- -- = IsRightControlKeyDown()
- pauseKey = IsRightAltKeyDown()
- -- = IsMouseButtonDown(3)
- shockWaveKey = IsMouseButtonDown(4)
- -- = IsMouseButtonDown(5)
- ---------------
- --EndKeybinds--
- ---------------
- --FixLag
- local ping = tonumber((select(3,GetNetStats()) + select(4,GetNetStats())) / 2000) + .025
- if ping &lt; .05
- then
- ping = .05
- elseif ping &gt; .3
- then
- ping = .3
- end
- PQR_SpellAvailableTime = ping
- if autoStance == true
- then
- --Arms
- if GetSpecialization() == 1
- then
- if GetShapeshiftForm() ~= 1
- then
- CastShapeshiftForm(1)
- end
- if IsEquippedItemType(&quot;shields&quot;) == true
- then
- if UseEquipmentSet(&quot;2HSet&quot;) ~= nil
- then
- return true
- end
- end
- end
- --Fury
- if GetSpecialization() == 2
- and GetShapeshiftForm() ~= 1
- then
- CastShapeshiftForm(1)
- end
- --Prot
- if GetSpecialization() == 3
- and GetShapeshiftForm() ~= 2
- then
- CastShapeshiftForm(2)
- end
- end
- --PauseKey
- if pauseKey ~= nil
- or UnitIsDeadOrGhost(&quot;player&quot;) == 1
- then return true end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>
- --Interrupts--</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>local castingTarget = nil
- for i=1, #custTars do
- if ( select(9,UnitCastingInfo(custTars[i]))==false
- or select(8,UnitChannelInfo(custTars[i]))==false )
- then
- castingTarget = custTars[i]
- end
- end
- if castingTarget ~= nil
- then
- local cName, _, _, _, cStart,cEnd = UnitCastingInfo(castingTarget)
- local chName, _, _, _, chStart,chEnd = UnitChannelInfo(castingTarget)
- if chName ~= nil then
- cName = chName
- cStart = chStart
- cEnd = chEnd
- end
- local timeSinceStart = (GetTime() * 1000 - cStart) / 1000
- local timeLeft = ((GetTime() * 1000 - cEnd) * -1) / 1000
- local castTime = cEnd - cStart
- local currentPercent = timeSinceStart / castTime * 100000
- --Pum--
- if cdRemains(6552) == 0
- and rangeCheck(6552,castingTarget) == true
- and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
- and currentPercent &gt;= intPctDelay
- then
- _castSpell(6552,castingTarget)
- PQR_DelayRotation(.5)
- end
- --DS--
- if (cdRemains(6552) &gt; 0 or rangeCheck(6552,castingTarget) == nil)
- and cdRemains(102060) == 0
- and CheckInteractDistance(castingTarget,3) ~= nil
- and UnitIsEnemy(&quot;player&quot;,castingTarget) ~= nil
- and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
- and currentPercent &gt; intPctDelay
- then
- _castSpell(102060)
- PQR_DelayRotation(.5)
- end
- --ChargeInterrupt--
- if chargeInterrupt == true
- and (cdRemains(6552) &gt; 0 or rangeCheck(6552,castingTarget) == nil)
- and (cdRemains(102060) &gt; 0 or CheckInteractDistance(castingTarget,3) == nil)
- and cdRemains(100) == 0
- and rangeCheck(100,castingTarget) == true
- and poppedCDs(&quot;player&quot;) == nil
- and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
- and currentPercent &gt; intPctDelay
- then
- _castSpell(100,castingTarget)
- PQR_DelayRotation(1) --Delay while charging
- end
- --HT--
- if gagOrder == true
- and (cdRemains(6552) &gt; 0 or rangeCheck(6552,castingTarget) == nil)
- and (cdRemains(102060) &gt; 0 or CheckInteractDistance(castingTarget,3) == nil)
- and (cdRemains(100) &gt; 0 or rangeCheck(100,castingTarget) == nil or poppedCDs(&quot;player&quot;) == true or chargeInterrupt == false)
- and cdRemains(57755) == 0
- and rangeCheck(57755,castingTarget) == true
- and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
- and currentPercent &gt; intPctDelay
- then
- _castSpell(57755,castingTarget)
- end
- --SB--
- if (cdRemains(6552) &gt; 0 or rangeCheck(6552,castingTarget) == nil)
- and (cdRemains(102060) &gt; 0 or CheckInteractDistance(castingTarget,3) == nil)
- and (cdRemains(100) &gt; 0 or rangeCheck(100,castingTarget) == nil or poppedCDs(&quot;player&quot;) == true)
- and (cdRemains(57755) &gt; 0)
- and IsPlayerSpell(107570) == true
- and cdRemains(107570) == 0
- and rangeCheck(107570,castingTarget) == true
- and ( PQR_IsOnInterruptList(cName) ~= nil or PQR_IsInterruptAll() ~= nil )
- and currentPercent &gt; intPctDelay
- then
- sb = true
- _castSpell(107570,castingTarget)
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Fury_2-3Rotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--DemoBanner Throw--
- if cdRemains(114203) == 0
- and demoBannerKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(114203))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(114203)
- end
- --Heroic Leap--
- if cdRemains(6544) == 0
- and heroicLeapKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(6544))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop()
- end
- _castSpell(6544)
- end
- if inMelee() == true
- then
- --autoRecklessness--
- if autoReck == true
- and ( ( UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)
- and select(7,UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)) - GetTime() &gt;= 5)
- or cdRemains(86346) &lt;= 4
- or cdRemains(12292) &lt;= 3 )
- then
- _castSpell(1719)
- end
- --BloodBath--
- if autoBloodBath == true
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)
- and select(7,UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)) - GetTime() &gt;= 5
- and ( UnitBuffID(&quot;player&quot;,1719) or cdRemains(1719) &gt; 60 or autoReck == false )
- then
- _castSpell(12292)
- end
- --BerserkRage--
- if UnitBuffID(&quot;player&quot;,12880) == nil
- and UnitBuffID(&quot;player&quot;,131116) == nil
- then
- _castSpell(18499)
- end
- --Dcalm--
- if ( IsPlayerSpell(12292) == false
- and UnitPower(&quot;player&quot;) &gt;= 40 )
- or ( IsPlayerSpell(12292) == true
- and UnitBuffID(&quot;player&quot;,12292) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 40 )
- then
- _castSpell(85730)
- end
- --HeroicStrike--
- if (
- getHp(&quot;target&quot;) &gt;= 20
- and ( UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 40 )
- or ( UnitBuffID(&quot;player&quot;,85730) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 30 )
- )
- or UnitPower(&quot;player&quot;) &gt;= 110
- then
- _castSpell(845)
- end
- --EndHeroicStrikes--
- --BT--
- if ( getHp(&quot;target&quot;) &lt; 20
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 30
- ) == false
- then
- _castSpell(23881)
- end
- --WS--
- if UnitBuffID(&quot;player&quot;,46916) ~= nil
- and getHp(&quot;target&quot;) &gt;= 20
- and ( cdRemains(23881) &gt; 0 and cdRemains(23881) &lt;= 1 )
- then
- _castSpell(100130)
- end
- --Wait--
- if ( getHp(&quot;target&quot;) &lt; 20
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 30
- ) == false
- and ( cdRemains(23881) &gt; 0 and cdRemains(23881) &lt;= 1 )
- then
- return true
- end
- --CS--
- _castSpell(86346)
- --DrHighPrio--
- if useDR == true
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) == nil
- and UnitBuffID(&quot;player&quot;,12292) ~= nil
- then
- _castSpell(118000)
- end
- --Execute--
- _castSpell(5308)
- --RB--
- if ( UnitBuffID(&quot;player&quot;,131116) ~= nil and select(4,UnitBuffID(&quot;player&quot;,131116)) == 2 )
- or ( UnitBuffID(&quot;player&quot;,131116) ~= nil
- and ( getHp(&quot;target&quot;) &lt;= 20
- or UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- or UnitBuffID(&quot;player&quot;,12292) ~= nil
- or UnitBuffID(&quot;player&quot;,1719) ~= nil
- or cdRemains(86346) &gt;= 6
- or ( cdRemains(23881) &gt;= 1
- and select(7,UnitBuffID(&quot;player&quot;,131116)) - GetTime() &lt;= 6 )))
- then
- _castSpell(85288)
- end
- --WS--
- if UnitBuffID(&quot;player&quot;,46916) ~= nil
- and getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(100130)
- end
- --SW--
- if shockWaveKey == 1
- then
- _castSpell(46968)
- end
- --DR--
- if useDR == true
- then
- _castSpell(118000)
- end
- --HT--
- if gagOrder == false
- then
- _castSpell(57755)
- end
- --BS--
- if UnitPower(&quot;player&quot;) &lt; 70
- and UnitDebuffID(&quot;target&quot;,86346) == nil
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- if select(2,GetSpellCooldown(469)) == 0
- then
- CastSpellByName(GetSpellInfo(469))
- end
- end
- end
- --WS--
- if UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(100130)
- end
- --IV--
- if getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(103840)
- end
- --WS--
- if cdRemains(86346) &gt;= 1
- and UnitPower(&quot;player&quot;) &gt;= 80
- and getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(100130)
- end
- --BS--
- if UnitPower(&quot;player&quot;) &lt; 70
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- if select(2,GetSpellCooldown(469)) == 0
- then
- CastSpellByName(GetSpellInfo(469))
- end
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Fury_Aoe(4+)Rotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>if cdRemains(114203) == 0
- and demoBannerKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(114203))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(114203)
- end
- if cdRemains(6544) == 0
- and heroicLeapKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(6544))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(6544)
- end
- if inMelee() == true
- then
- --BloodBath--
- if autoBloodBath == true
- then
- _castSpell(12292)
- end
- if UnitBuffID(&quot;player&quot;,12880) == nil
- then
- _castSpell(18499)
- end
- if shockWaveKey == 1
- then
- _castSpell(46968)
- end
- if useDR == true
- then
- _castSpell(118000)
- end
- if gagOrder == false
- and inMelee() == true
- then
- _castSpell(57755)
- end
- if getHp(&quot;target&quot;) &gt;= 20
- and UnitPower(&quot;player&quot;) &lt;= 80
- then _castSpell(23881)
- end
- _castSpell(86346)
- if UnitBuffID(&quot;player&quot;,85739) ~= nil
- and select(4, UnitBuffID(&quot;player&quot;,85739)) == 3
- then
- _castSpell(85288)
- end
- _castSpell(1680)
- if UnitPower(&quot;player&quot;) &lt; 70
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- if select(2,GetSpellCooldown(469)) == 0
- then
- CastSpellByName(GetSpellInfo(469))
- end
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Arms_BasicRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Vars
- local tfb, _, _, tfbCount, _, _, tfbExp = UnitBuffID(&quot;player&quot;, 56638)
- local cs,_,_,_,_,_,csExp = UnitDebuffID(&quot;target&quot;, 86346, &quot;player&quot;)
- if cdRemains(114203) == 0
- and demoBannerKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(114203))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(114203)
- end
- if cdRemains(6544) == 0
- and heroicLeapKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(6544))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop()
- end
- _castSpell(6544)
- end
- if inMelee() == true
- then
- if UnitBuffID(&quot;player&quot;,12880) == nil
- then
- _castSpell(18499)
- end
- if getHp(&quot;player&quot;) &lt;= 80
- and IsUsableSpell(34428) ~= nil
- then
- _castSpell(34428)
- end
- if UnitPower(&quot;player&quot;) &gt;= 40
- then
- _castSpell(85730)
- end
- if getHp(&quot;target&quot;) &gt;= 20
- and UnitDebuffID(&quot;target&quot;, 86346, &quot;player&quot;) ~= nil
- then
- if tfb
- and ( tfbExp - GetTime() &lt;= 2 )
- or ( tfbCount == 5 and IsUsableSpell(7384) ~= nil )
- or (( cs ~= nil and csExp - GetTime() &lt;= 2 ) and cdRemains(86346) &gt; 0)
- then _castSpell(78)
- elseif UnitBuffID(&quot;player&quot;,85730) ~= nil
- or UnitPower(&quot;player&quot;) &gt; 110
- then CastSpellByName(GetSpellInfo(78))
- end
- end
- _castSpell(12294)
- if ( cs == nil or csExp - GetTime() &lt;= 1.5 )
- then
- _castSpell(86346)
- end
- if getHp(&quot;target&quot;) &lt; 20
- then
- _castSpell(5308)
- end
- if IsUsableSpell(7384) ~= nil
- then
- _castSpell(7384)
- end
- if shockWaveKey == 1
- then
- _castSpell(46968)
- end
- if useDR == true
- then
- _castSpell(118000)
- end
- if getHp(&quot;target&quot;) &gt;= 20
- and ( UnitPower(&quot;player&quot;) &gt;= 70 or cs ~= nil )
- then
- _castSpell(1464)
- end
- end
- if inCombat()
- and gagOrder == false
- and inMelee() == true
- then
- _castSpell(57755)
- end
- if inMelee() == true
- then
- if UnitPower(&quot;player&quot;) &lt; 70
- and cs == nil
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- _castSpell(469)
- end
- end
- if getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(1464)
- end
- if getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(103840)
- end
- if UnitPower(&quot;player&quot;) &lt; 70
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- _castSpell(469)
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Arms_AoeRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Vars
- local tfb, _, _, tfbCount, _, _, tfbExp = UnitBuffID(&quot;player&quot;, 56638)
- local cs,_,_,_,_,_,csExp = UnitDebuffID(&quot;target&quot;, 86346, &quot;player&quot;)
- if cdRemains(114203) == 0
- and demoBannerKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(114203))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(114203)
- end
- if cdRemains(6544) == 0
- and heroicLeapKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(6544))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(6544)
- end
- if inMelee() == true
- then
- if getHp(&quot;player&quot;) &lt;= 80
- and IsUsableSpell(34428) ~= nil
- then
- _castSpell(34428,&quot;target&quot;)
- end
- if UnitBuffID(&quot;player&quot;,12880) == nil
- then
- _castSpell(18499)
- end
- if UnitPower(&quot;player&quot;) &gt;= 40
- then
- _castSpell(85730)
- end
- if shockWaveKey == 1
- then
- _castSpell(46968)
- end
- if useDR == true
- then
- _castSpell(118000)
- end
- if gagOrder == false
- and inMelee()
- then
- _castSpell(57755)
- end
- if getHp(&quot;target&quot;) &gt;= 20
- and cs ~= nil
- then
- if tfb
- and ( tfbExp - GetTime() &lt;= 2 )
- or ( tfbCount == 5 and IsUsableSpell(7384) ~= nil )
- or (( cs ~= nil and csExp - GetTime() &lt;= 2 ) and cdRemains(86346) &gt; 0)
- then _castSpell(78,&quot;target&quot;)
- elseif UnitBuffID(&quot;player&quot;,85730) ~= nil
- or UnitPower(&quot;player&quot;) &gt; 110
- then
- if UnitBuffID(&quot;player&quot;,12328) ~= nil
- then
- CastSpellByName(GetSpellInfo(78))
- elseif UnitBuffID(&quot;player&quot;,12328) == nil
- then
- CastSpellByName(GetSpellInfo(845))
- end
- end
- end
- end
- if inCombat() == true
- and UnitPower(&quot;player&quot;) &gt;= 60
- then _castSpell(12328)
- end
- if inMelee() == true
- then
- _castSpell(12294,&quot;target&quot;)
- if ( cs == nil or csExp - GetTime() &lt;= 1.5 )
- then
- _castSpell(86346)
- end
- _castSpell(6343)
- if IsUsableSpell(7384) ~= nil
- then
- _castSpell(7384,&quot;target&quot;)
- end
- _castSpell(1680)
- if UnitPower(&quot;player&quot;) &lt; 70
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- _castSpell(469)
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Fury_BasicRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--DemoBanner Throw--
- if cdRemains(114203) == 0
- and demoBannerKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(114203))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(114203)
- end
- --Heroic Leap--
- if cdRemains(6544) == 0
- and heroicLeapKey ~= nil
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(6544))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop()
- end
- _castSpell(6544)
- end
- if inMelee() == true
- then
- --autoRecklessness--
- if autoReck == true
- and ( ( UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)
- and select(7,UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)) - GetTime() &gt;= 5)
- or cdRemains(86346) &lt;= 4
- or cdRemains(12292) &lt;= 3 )
- then
- _castSpell(1719)
- end
- --BloodBath--
- if autoBloodBath == true
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)
- and select(7,UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;)) - GetTime() &gt;= 5
- and ( UnitBuffID(&quot;player&quot;,1719) or cdRemains(1719) &gt; 60 or autoReck == false )
- then
- _castSpell(12292)
- end
- --BerserkRage--
- if UnitBuffID(&quot;player&quot;,12880) == nil
- and UnitBuffID(&quot;player&quot;,131116) == nil
- then
- _castSpell(18499)
- end
- --Dcalm--
- if ( IsPlayerSpell(12292) == false
- and UnitPower(&quot;player&quot;) &gt;= 40 )
- or ( IsPlayerSpell(12292) == true
- and UnitBuffID(&quot;player&quot;,12292) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 40 )
- then
- _castSpell(85730)
- end
- --HeroicStrike--
- if (
- getHp(&quot;target&quot;) &gt;= 20
- and ( UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 40 )
- or ( UnitBuffID(&quot;player&quot;,85730) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 30 )
- )
- or UnitPower(&quot;player&quot;) &gt;= 110
- then
- _castSpell(78)
- end
- --EndHeroicStrikes--
- --BT--
- if ( getHp(&quot;target&quot;) &lt; 20
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 30
- ) == false
- then
- _castSpell(23881)
- end
- --WS--
- if UnitBuffID(&quot;player&quot;,46916) ~= nil
- and getHp(&quot;target&quot;) &gt;= 20
- and ( cdRemains(23881) &gt; 0 and cdRemains(23881) &lt;= 1 )
- then
- _castSpell(100130)
- end
- --Wait--
- if ( getHp(&quot;target&quot;) &lt; 20
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and UnitPower(&quot;player&quot;) &gt;= 30
- ) == false
- and ( cdRemains(23881) &gt; 0 and cdRemains(23881) &lt;= 1 )
- then
- return true
- end
- --CS--
- _castSpell(86346)
- --DrHighPrio--
- if useDR == true
- and UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) == nil
- and UnitBuffID(&quot;player&quot;,12292) ~= nil
- then
- _castSpell(118000)
- end
- --Execute--
- _castSpell(5308)
- --RB--
- if ( UnitBuffID(&quot;player&quot;,131116) ~= nil and select(4,UnitBuffID(&quot;player&quot;,131116)) == 2 )
- or ( UnitBuffID(&quot;player&quot;,131116) ~= nil
- and ( getHp(&quot;target&quot;) &lt;= 20
- or UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- or UnitBuffID(&quot;player&quot;,12292) ~= nil
- or UnitBuffID(&quot;player&quot;,1719) ~= nil
- or cdRemains(86346) &gt;= 6
- or ( cdRemains(23881) &gt;= 1
- and select(7,UnitBuffID(&quot;player&quot;,131116)) - GetTime() &lt;= 6 )))
- then
- _castSpell(85288)
- end
- --WS--
- if UnitBuffID(&quot;player&quot;,46916) ~= nil
- and getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(100130)
- end
- --SW--
- if shockWaveKey == 1
- then
- _castSpell(46968)
- end
- --DR--
- if useDR == true
- then
- _castSpell(118000)
- end
- --HT--
- if gagOrder == false
- then
- _castSpell(57755)
- end
- --BS--
- if UnitPower(&quot;player&quot;) &lt; 70
- and UnitDebuffID(&quot;target&quot;,86346) == nil
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- if select(2,GetSpellCooldown(469)) == 0
- then
- CastSpellByName(GetSpellInfo(469))
- end
- end
- end
- --WS--
- if UnitDebuffID(&quot;target&quot;,86346,&quot;player&quot;) ~= nil
- and getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(100130)
- end
- --IV--
- if getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(103840)
- end
- --WS--
- if cdRemains(86346) &gt;= 1
- and UnitPower(&quot;player&quot;) &gt;= 80
- and getHp(&quot;target&quot;) &gt;= 20
- then
- _castSpell(100130)
- end
- --BS--
- if UnitPower(&quot;player&quot;) &lt; 70
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() ~= nil
- then
- if select(2,GetSpellCooldown(469)) == 0
- then
- CastSpellByName(GetSpellInfo(469))
- end
- end
- end
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Prot_BasicRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Defensives--
- if inCombat()
- then
- if getHp(&quot;player&quot;) &lt;= 35
- then
- _castSpell(871)
- end
- if getHp(&quot;player&quot;) &lt;= 95
- and UnitPower(&quot;player&quot;) &gt;= 60
- then
- _castSpell(112048)
- end
- if getHp(&quot;player&quot;) &lt;= 25
- then
- _castSpell(97462)
- end
- if getHp(&quot;player&quot;) &lt;= 15
- then
- _castSpell(12975)
- end
- end
- if inMelee()
- then
- if getHp(&quot;player&quot;) &lt;= 50
- then _castSpell(1160)
- end
- if getHp(&quot;player&quot;) &lt;= 80
- and IsUsableSpell(34428)
- then
- _castSpell(34428)
- end
- end
- if select(2,GetSpellCooldown(114203)) == 0
- and demoBannerKey == 1
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(114203))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(114203)
- end
- --OffensiveRotation--
- if select(2,GetSpellCooldown(6544)) == 0
- and heroicLeapKey == 1
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(6544))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(6544)
- end
- if shockWaveKey == 1
- then
- _castSpell(46968)
- end
- if inMelee()
- then
- if UnitBuffID(&quot;player&quot;,12880) == nil
- then
- _castSpell(18499)
- end
- if ( UnitBuffID(&quot;player&quot;,122510) or UnitPower(&quot;player&quot;) &gt; 90 )
- then
- _castSpell(78)
- end
- if UnitPower(&quot;player&quot;) &gt;= 40
- then
- _castSpell(85730)
- end
- if UnitDebuffID(&quot;target&quot;,115798) == nil
- then
- _castSpell(6343)
- end
- _castSpell(23922)
- _castSpell(6572)
- if UnitPower(&quot;player&quot;) &lt; 70
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() == true
- then
- _castSpell(469)
- end
- end
- _castSpell(20243)
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability><Ability><Name>Prot_AoeRotation</Name><Default>false</Default><SpellID>0</SpellID><Actions></Actions><Lua>--Defensives--
- if inCombat()
- then
- if getHp(&quot;player&quot;) &lt;= 35
- then
- _castSpell(871)
- end
- if getHp(&quot;player&quot;) &lt;= 95
- and UnitPower(&quot;player&quot;) &gt;= 60
- then
- _castSpell(2565)
- end
- if getHp(&quot;player&quot;) &lt;= 25
- then
- _castSpell(97462)
- end
- if getHp(&quot;player&quot;) &lt;= 15
- then
- _castSpell(12975)
- end
- end
- if inMelee()
- then
- if getHp(&quot;player&quot;) &lt;= 50
- then _castSpell(1160)
- end
- if getHp(&quot;player&quot;) &lt;= 80
- and IsUsableSpell(34428)
- then
- _castSpell(34428)
- end
- end
- if select(2,GetSpellCooldown(114203)) == 0
- and demoBannerKey == 1
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(114203))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(114203)
- end
- --OffensiveRotation--
- if select(2,GetSpellCooldown(6544)) == 0
- and heroicLeapKey == 1
- and GetCurrentKeyBoardFocus() == nil
- then
- CastSpellByName(GetSpellInfo(6544))
- if SpellIsTargeting() ~= nil
- then
- CameraOrSelectOrMoveStart()
- CameraOrSelectOrMoveStop()
- end
- _castSpell(6544)
- end
- if shockWaveKey == 1
- then
- _castSpell(46968)
- end
- if inMelee()
- then
- if UnitBuffID(&quot;player&quot;,12880) == nil
- then
- _castSpell(18499)
- end
- if ( UnitBuffID(&quot;player&quot;,122510) or UnitPower(&quot;player&quot;) &gt; 90 )
- then
- _castSpell(845)
- end
- if UnitPower(&quot;player&quot;) &gt;= 40
- then
- _castSpell(85730)
- end
- _castSpell(6343)
- _castSpell(23922)
- _castSpell(6572)
- if UnitPower(&quot;player&quot;) &lt; 70
- then
- if hasApBuff() == nil
- then
- _castSpell(6673)
- elseif hasApBuff() == true
- then
- _castSpell(469)
- end
- end
- _castSpell(20243)
- end</Lua><RecastDelay>0</RecastDelay><Target>Target</Target><CancelChannel>False</CancelChannel><SkipUnknown>True</SkipUnknown></Ability></WARRIOR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement