aggixx

Untitled

Aug 29th, 2012
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.71 KB | None | 0 0
  1. # Ovale Optimized Script Leafkiller 5.4
  2. # Ovale source: http://wow.curse.com/downloads/wow-addons/details/ovale.aspx
  3. # Cat Rotation based on Simulationcraft single target default script. Contributions to that have come from many ferals.
  4. # Revision History
  5. # 5.4.4 08/29/2012 Change TF code to take into account the new T13 4 piece bonus. Try to give Rake more leeway.
  6. # Add opportunistic FF after fillers.
  7. # 5.4.3 08/28/2012 Misc small changes to make it more robust per discussion with Tinderhoof
  8. # 5.4.2 08/28/2012 Rudimentary Bear stuff - I need someway to track Mangle...
  9. # 5.4.1 08/27/2012 First version for patch 5.4 - leaving out Guardian and Feral/Bear for the moment
  10. # Assume Glyph of Rake and Glyph of Shred
  11. # TargetDeadIn seems to be having issues - so removing the calls for now. Won't affect most combat
  12.  
  13. Define(BERSERK 106951) #cat+bear cd buff
  14. Define(FAERIEFERAL 770) #bear+cat
  15. Define(FEROCIOUSBITE 22568) #cat finish 35-70 mana
  16. Define(MAIM 22570) #cat interrupt
  17. Define(MANGLECAT 33876) #cat bleed+debuff
  18. SpellInfo(MANGLECAT inccounter=ripshreds)
  19. Define(RAKE 1822) #cat bleed
  20. Define(RIP 1079) #cat bleed
  21. SpellInfo(RIP resetcounter=ripshreds)
  22. Define(SAVAGEROAR 127538) #cat damage buff
  23. Define(SHRED 5221) #cat behind
  24. SpellInfo(SHRED inccounter=ripshreds)
  25. Define(SKULLBASHCAT 80965) #cat interrupt
  26. Define(TIGERSFURY 5217) #cat buff
  27.  
  28. Define(BERSERKBEAR 106952) #cat+bear cd buff
  29. SpellInfo(BERSERKBEAR duration=10 cd=180 )
  30. SpellAddBuff(BERSERKBEAR BERSERKBEAR=1)
  31. Define(MANGLEBEAR 33878)
  32. Define(LACERATE 33745)
  33. Define(FRENZIEDREGEN 22842)
  34. Define(INCARNATIONBEAR 102558)
  35. Define(MAUL 6807)
  36. Define(MIGHTOFURSOC 106922)
  37. Define(RENEWAL 108238)
  38. Define(SAVAGEDEFENSE 62606)
  39. Define(SURVIVALINSTINCTS 61336)
  40. Define(SWIPEBEAR 779)
  41. Define(THRASHBEAR 77758)
  42. Define(BARKSKIN 22812)
  43. Define(ENRAGE 5229)
  44.  
  45. Define(cat_form 768)
  46. SpellAddBuff(cat_form cat_form=1)
  47. Define(mark_of_the_wild 1126)
  48. SpellInfo(mark_of_the_wild duration=3600 )
  49. SpellAddBuff(mark_of_the_wild mark_of_the_wild=1)
  50. Define(ravage 6785)
  51. SpellInfo(ravage energy=45 combo=1 )
  52. SpellInfo(ravage inccounter=ripshreds)
  53. Define(incarnation 102543)
  54. SpellInfo(incarnation duration=30 cd=180 )
  55. Define(treants 106737)
  56. SpellInfo(treants duration=15 cd=60 )
  57. Define(weakened_armor 113746)
  58. SpellInfo(weakened_armor duration=30 )
  59. SpellAddBuff(weakened_armor weakened_armor=1)
  60. Define(weakened_blows 115798)
  61. SpellInfo(weakened_blows duration=30 )
  62. SpellAddBuff(weakened_blows weakened_blows=1)
  63. Define(dream_of_cenarius_talent 17)
  64. Define(force_of_nature_talent 12)
  65. Define(incarnation_talent 11)
  66. Define(natures_swiftness_talent 4)
  67. Define(natures_vigil_talent 18)
  68.  
  69. #Buff
  70. Define(CLEARCASTING 16870)
  71.  
  72. AddCheckBox(berserk "Cat Berserk" default mastery=2)
  73. AddCheckBox(cooldownsL "Show Left Rotation Boxes" default mastery=2)
  74. AddCheckBox(cooldownsR "Show Right Cooldown Boxes" default mastery=2)
  75. AddCheckBox(lucioles SpellName(FAERIEFERAL) default mastery=2)
  76. AddCheckBox(shred "Use Shred for fillers" default mastery=2)
  77.  
  78.  
  79.  
  80. AddIcon help=cd size=small mastery=3 {
  81. Spell(BARKSKIN)
  82. }
  83.  
  84. AddIcon help=cd size=small mastery=3 {
  85. Spell(RENEWAL)
  86. }
  87.  
  88. # Main rotation
  89. AddIcon help=main mastery=3 {
  90. if 1s before Spell(MANGLEBEAR) Spell(MANGLEBEAR)
  91.  
  92. if target.DebuffStacks(weakened_armor) <1 Spell(FAERIEFERAL)
  93.  
  94. if not TargetDebuffPresent(weakened_blows) Spell(THRASHBEAR)
  95.  
  96. Spell(LACERATE)
  97. }
  98.  
  99. AddIcon help=defense mastery=3 {
  100. Spell(SAVAGEDEFENSE usable=1)
  101. Spell(FRENZIEDREGEN)
  102. }
  103.  
  104. AddIcon help=cd size=small mastery=3 {
  105. Spell(SURVIVALINSTINCTS)
  106. }
  107.  
  108. AddIcon help=cd size=small mastery=3 {
  109. Spell(MIGHTOFURSOC)
  110. }
  111.  
  112. AddIcon help=cd size=small mastery=3 {
  113. Spell(ENRAGE)
  114. }
  115.  
  116. AddIcon help=cd size=small mastery=3 {
  117. Spell(BERSERKBEAR)
  118. }
  119.  
  120. AddFunction AddCombo
  121. {
  122. if TalentPoints(incarnation_talent) Spell(ravage usable=1)
  123. if BuffPresent(TIGERSFURY) or BuffPresent(BERSERK) or CheckBoxOn(shred) Spell(SHRED)
  124. Spell(MANGLECAT)
  125. }
  126. 4
  127. AddFunction BITWRange
  128. {
  129. {ArmorSetParts(T13 more 1) and TargetLifePercent(less 60)} or TargetLifePercent(less 25)
  130. }
  131. # Main rotation
  132. AddIcon help=main mastery=2 {
  133. # Savage Roar
  134. if BuffRemains(SAVAGEROAR) <=1 or {ComboPoints(more 0) and ComboPoints(less 5) and BuffExpires(SAVAGEROAR 3)} {
  135. Spell(SAVAGEROAR)
  136. }
  137.  
  138. # TF + Berserk logic - only show Berserk if both are off of cooldown - everyone should macro TF to their Berserk key
  139. if not {BuffPresent(BERSERK) or BuffPresent(CLEARCASTING)} {
  140. if ArmorSetParts(T13 more 3) {
  141. if Energy(less 26) and {0s before Spell(TIGERSFURY)} {
  142. if CheckBoxOn(berserk) Spell(BERSERK)
  143. Spell(TIGERSFURY)
  144. }
  145. }
  146. if not ArmorSetParts(T13 more 3) {
  147. if Energy(less 36) and {0s before Spell(TIGERSFURY)} {
  148. if CheckBoxOn(berserk) Spell(BERSERK)
  149. Spell(TIGERSFURY)
  150. }
  151. }
  152. }
  153.  
  154. #In case Berserk was not cast with TF
  155. if BuffPresent(TIGERSFURY) and CheckBoxOn(berserk) {
  156. Spell(BERSERK)
  157. }
  158.  
  159. if not TargetInRange(SHRED) {
  160. Texture(ability_druid_catformattack)
  161. }
  162.  
  163. if CheckBoxOn(lucioles) and target.DebuffStacks(weakened_armor) <1 {
  164. Spell(FAERIEFERAL)
  165. }
  166.  
  167. # Two conditions for FB during Blood of the Water phase
  168. # Add in FB code for end of fight - only do this is Rip buff is present
  169. if BITWRange() and TargetDebuffPresent(RIP mine=1) {
  170. if ComboPoints(more 4) Spell(FEROCIOUSBITE)
  171. if ComboPoints(more 0) and TargetDebuffExpires(RIP 2.9 mine=1) Spell(FEROCIOUSBITE)
  172. }
  173. #Extends Rip with shred/mangle/ravage
  174. if TargetDebuffPresent(RIP mine=1) and TargetDebuffExpires(RIP 4 mine=1) and Counter(ripshreds less 3) AddCombo()
  175.  
  176. # Time to recast Rip - clip if possible - try to hold off for TF
  177. if ComboPoints() >=5 and TargetDebuffExpires(RIP 2 mine=1) and {BuffPresent(BERSERK) or target.DebuffRemains(RIP mine=1)+1.9 <=SpellCooldown(TIGERSFURY) }
  178. Spell(RIP)
  179.  
  180. # FBs during Berserk
  181. if BuffPresent(BERSERK) {
  182. if ComboPoints(more 4) and Energy(more 12) and TargetDebuffPresent(RIP 5 mine=1) and BuffPresent(SAVAGEROAR 3) {
  183. Spell(FEROCIOUSBITE)
  184. }
  185. }
  186.  
  187. # clip Rake early if TF is up and rake ramining is less than 9 seconds
  188. if TargetDebuffExpires(RAKE 8.9 mine=1) and BuffPresent(TIGERSFURY) {
  189. Spell(RAKE)
  190. }
  191.  
  192. # intentionally clip Rake to maximize uptime
  193. if TargetDebuffExpires(RAKE 2.9 mine=1) and {BuffPresent(BERSERK) or Energy(more 60) or {SpellCooldown(tigers_fury) +0.8 } >=target.DebuffRemains(RAKE mine=1)}
  194. Spell(RAKE)
  195.  
  196. if BuffPresent(CLEARCASTING) AddCombo()
  197.  
  198. # Burn combo points on FB if the target is about to die - on a boss fight this is redundant with BotW phase
  199. if ComboPoints(more 4) and TargetDeadIn(less 7) {
  200. Spell(FEROCIOUSBITE)
  201. }
  202.  
  203. # Shred aggressively for Berserk and TF
  204. if BuffPresent(BERSERK) or BuffPresent(TIGERSFURY) AddCombo()
  205.  
  206. # Shred for combo points for Rip or SR
  207. if ComboPoints(less 5) and TargetDebuffExpires(RIP 3 mine=1) AddCombo()
  208. if ComboPoints(less 1) and BuffExpires(SAVAGEROAR 2) AddCombo()
  209.  
  210. # Shred to burn off energy so we can TF without capping
  211. if { 3s before Spell(TIGERSFURY) } AddCombo()
  212.  
  213. # Shred is the mob will die within one Rake
  214. if TargetDeadIn(less 8.5) AddCombo()
  215.  
  216. # Fallback Shred to prevent energy capping
  217. if 1.2s before Energy(more 99) AddCombo()
  218.  
  219. # opportunistic FF
  220. if TargetDebuffExpires(weakened_armor 15) Spell(FAERIEFERAL)
  221. }
Advertisement
Add Comment
Please, Sign In to add comment