PHP Code:
actions=auto_attack
actions+=/mogu_power_potion,if=(target.health.pct<20&buff.recklessness.up)|target.time_to_die<=25
actions+=/blood_fury
actions+=/bloodbath,if=talent.bloodbath.enabled&(cooldown.colossus_smash.remains<2|debuff.colossus_smash.remains>=5|target.time_to_die<=20)
actions+=/recklessness,if=(talent.avatar.enabled&(cooldown.colossus_smash.remains<2|debuff.colossus_smash.remains>=5))|(talent.bloodbath.enabled&(buff.bloodbath.up&(target.time_to_die>192|target.health.pct<20)))|target.time_to_die<=12
actions+=/avatar,if=buff.recklessness.up&talent.avatar.enabled
actions+=/skull_banner,if=buff.recklessness.up
actions+=/use_item,name=gauntlets_of_the_last_mogu,if=(!talent.bloodbath.enabled&debuff.colossus_smash.up)|(talent.bloodbath.enabled&buff.bloodbath.up)
actions+=/berserker_rage,if=!(buff.enrage.react|(buff.raging_blow.react=2&target.health.pct>=20))|(buff.recklessness.remains>=10&!buff.raging_blow.react)
actions+=/heroic_leap,if=debuff.colossus_smash.up
actions+=/run_action_list,name=single_target,if=active_enemies=1
actions+=/run_action_list,name=two_targets,if=active_enemies=2
actions+=/run_action_list,name=three_targets,if=active_enemies=3
actions+=/run_action_list,name=aoe,if=active_enemies>3
actions.single_target=heroic_strike,if=((debuff.colossus_smash.up&rage>=40)&target.health.pct>=20)|rage>=110
actions.single_target+=/raging_blow,if=buff.raging_blow.stack=2&debuff.colossus_smash.up&target.health.pct>=20
actions.single_target+=/bloodthirst,if=!(target.health.pct<20&debuff.colossus_smash.up&rage>=30)
actions.single_target+=/wild_strike,if=buff.bloodsurge.react&target.health.pct>=20&cooldown.bloodthirst.remains<=1
actions.single_target+=/wait,sec=cooldown.bloodthirst.remains,if=!(target.health.pct<20&debuff.colossus_smash.up&rage>=30)&cooldown.bloodthirst.remains<=1&cooldown.bloodthirst.remains
actions.single_target+=/dragon_roar,if=talent.dragon_roar.enabled&(!debuff.colossus_smash.up&buff.bloodbath.up)
actions.single_target+=/colossus_smash
actions.single_target+=/execute,if=buff.enrage.up|debuff.colossus_smash.up|rage>90|target.time_to_die<12|buff.recklessness.up
actions.single_target+=/storm_bolt,if=talent.storm_bolt.enabled
actions.single_target+=/raging_blow,if=buff.raging_blow.stack=2|(buff.raging_blow.up&(debuff.colossus_smash.up|cooldown.colossus_smash.remains>=3|(cooldown.bloodthirst.remains>=1&buff.raging_blow.remains<=3)))
actions.single_target+=/wild_strike,if=buff.bloodsurge.react
actions.single_target+=/shockwave,if=talent.shockwave.enabled
actions.single_target+=/heroic_throw,if=debuff.colossus_smash.down
actions.single_target+=/battle_shout,if=rage<70&!debuff.colossus_smash.up
actions.single_target+=/whirlwind,if=debuff.colossus_smash.up&target.health.pct>=20
actions.single_target+=/impending_victory,if=talent.impending_victory.enabled&target.health.pct>=20
actions.single_target+=/whirlwind,if=cooldown.colossus_smash.remains>=2&rage>=80&target.health.pct>=20
actions.single_target+=/battle_shout,if=rage<70
actions.two_targets=cleave,if=rage>=110
actions.two_targets+=/dragon_roar,if=talent.dragon_roar.enabled&(!debuff.colossus_smash.up&buff.bloodbath.up)
actions.two_targets+=/shockwave,if=talent.shockwave.enabled
actions.two_targets+=/bladestorm,if=talent.bladestorm.enabled
actions.two_targets+=/execute,if=debuff.colossus_smash.up
actions.two_targets+=/bloodthirst
actions.two_targets+=/wait,sec=cooldown.bloodthirst.remains,if=cooldown.bloodthirst.remains<=1&cooldown.bloodthirst.remains
actions.two_targets+=/colossus_smash
actions.two_targets+=/raging_blow,if=buff.meat_cleaver.up
actions.two_targets+=/whirlwind,if=!buff.meat_cleaver.up
actions.two_targets+=/raging_blow,if=buff.raging_blow.stack=2|(buff.raging_blow.up&(debuff.colossus_smash.up|cooldown.colossus_smash.remains>=3|buff.raging_blow.remains<=3))
actions.two_targets+=/storm_bolt,if=talent.storm_bolt.enabled
actions.two_targets+=/battle_shout,if=rage<70
actions.two_targets+=/heroic_throw
actions.three_targets=cleave,if=rage>=110
actions.three_targets+=/dragon_roar,if=talent.dragon_roar.enabled&(!debuff.colossus_smash.up&buff.bloodbath.up)
actions.three_targets+=/shockwave,if=talent.shockwave.enabled
actions.three_targets+=/bladestorm,if=talent.bladestorm.enabled
actions.three_targets+=/raging_blow,if=buff.raging_blow.remains<=2|buff.meat_cleaver.react=2
actions.three_targets+=/whirlwind
actions.three_targets+=/bloodthirst
actions.three_targets+=/wait,sec=cooldown.bloodthirst.remains,if=cooldown.bloodthirst.remains<=1&cooldown.bloodthirst.remains
actions.three_targets+=/colossus_smash
actions.three_targets+=/storm_bolt,if=talent.storm_bolt.enabled
actions.three_targets+=/raging_blow,if=buff.raging_blow.stack=2|(buff.raging_blow.up&(debuff.colossus_smash.up|cooldown.colossus_smash.remains>=3|buff.raging_blow.remains<=3))
actions.three_targets+=/battle_shout,if=rage<70
actions.three_targets+=/heroic_throw
actions.aoe=cleave,if=rage>110
actions.aoe+=/dragon_roar,if=talent.dragon_roar.enabled&(!debuff.colossus_smash.up&buff.bloodbath.up)
actions.aoe+=/shockwave,if=talent.shockwave.enabled
actions.aoe+=/bladestorm,if=talent.bladestorm.enabled
actions.aoe+=/bloodthirst
actions.aoe+=/colossus_smash
actions.aoe+=/raging_blow,if=buff.meat_cleaver.stack=3
actions.aoe+=/whirlwind
actions.aoe+=/storm_bolt,if=talent.storm_bolt.enabled
actions.aoe+=/battle_shout,if=rage<70
this is the rotation, has a few extra things. Ranged attacks, boss code, some raid utility stuff.