#Project: Visualising the optimal cat rotation ingame
#Script Version: 2.8a
Define(FFF 16857)
Define(FF 770)
Define(RIP 1079)
Define(MANGLE 33876)
Define(SHRED 5221)
Define(TIGER 5217)
Define(RAKE 59886)
Define(ROAR 52610)
Define(BITE 22568)
Define(BERSERK 50334)
Define(OMEN 16870)
Define(TRAUMA 46857)
Define(MANGLEB 33878)
SpellInfo(RIP resetcounter=ripshreds)
SpellInfo(SHRED inccounter=ripshreds)
AddCheckBox(Manglebot "Manglebot" default)
AddIcon help=main
{
if Stance(3) # cat
{
if ComboPoints(more 0) and BuffExpires(ROAR 0) Spell(ROAR priority=4)
if ComboPoints(more 2) and BuffExpires(ROAR 8) and TargetDebuffPresent(RIP mine=1) and at most 3s from TargetDebuffExpires(Rip mine=1) until BuffExpires(ROAR) and TargetDeadIn(more 8) Spell(ROAR priority=4)
if ComboPoints(more 3) and TargetDeadIn(less 2) Spell(BITE)
if TargetDebuffPresent(RIP mine=1) and TargetDebuffExpires(RIP 4 mine=1) and Counter(ripshreds less 3) Spell(SHRED)
if ComboPoints(more 4)
{
if TargetDeadIn(less 6) Spell(BITE)
unless TargetDebuffPresent(RIP mine=1) Spell(RIP priority=4)
unless TargetDebuffExpires(RIP 8 mine=1) or BuffExpires(ROAR 11) Spell(BITE)
}
if CheckBoxOn(Manglebot) and TargetDebuffExpires (MANGLE 1) Spell(MANGLE)
unless {TargetDebuffPresent(MANGLE) or TargetDebuffPresent(MANGLEB) or TargetDebuffPresent(TRAUMA)} Spell(MANGLE)
unless TargetDebuffPresent(RAKE mine=1) or TargetDeadIn(less 10) Spell(RAKE)
if TargetDeadIn(less 10) Spell(SHRED)
}
}
AddIcon help=main size=small nocd=3
{
if Stance(3) # cat
{
{
if {TargetDebuffPresent(MANGLE 0.6) or TargetDebuffPresent(MANGLEB 0.6) or TargetDebuffPresent(TRAUMA 0.6)} and TargetDebuffPresent(RAKE 0.6 mine=1) and {Mana(more 79) or BuffPresent(OMEN) or {TargetDebuffExpires(RIP 3 mine=1) and ComboPoints(less 5)} or BuffPresent(BERSERK) or 2s before Spell(TIGER) or {ComboPoints(less 1) and BuffExpires(ROAR 2)}} Spell(SHRED)
}
unless {BuffPresent(BERSERK) or 4s before Spell(TIGER) or Mana(more 32)}
{
unless {TargetDebuffPresent(FFF) or TargetDebuffPresent(FF)} Spell(FFF priority=2)
}
}
}
AddIcon help=cd size=small nocd=3
{
if Stance(3) # cat
{
Spell(TIGER priority=4)
}
}
AddIcon help=cd size=small nocd=5
{
if Stance(3) # cat
{
Spell(BERSERK)
}
}