Advertisement
Guest User

dw frost rev.2

a guest
Nov 5th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. private static Composite CreateDualWieldCombatBehavior()
  2. {
  3. return new PrioritySelector(
  4. new Decorator(ret => WhatRotationStyle(IsAutomaticMode), new PrioritySelector(
  5. Cast(DeathKnightSpells.UnholyBlight, ret => CooldownTimeLeft(DeathKnightSpells.Outbreak).TotalSeconds < 55 && (!HasAura(_toontarget, DeathKnightSpells.BloodPlague, true) || !HasAura(_toontarget, DeathKnightSpells.FrostFever, true))),
  6. Cast(DeathKnightSpells.Pestilence, ret => CanPester()),
  7. Cast(DeathKnightSpells.HowlingBlast),
  8. CastSensetive(DeathKnightSpells.BloodTap, ret => _toon, ret => StackCount(_toon, DeathKnightSpells.BloodCharge) >= 10 && SomeRunesDepleted()),
  9. Cast(DeathKnightSpells.FrostStrike, ret => _toon.CurrentRunicPower >= 76),
  10. CastOnGround(DeathKnightSpells.DeathAndDecay, ret => _toontarget.Location, ret => _toon.UnholyRuneCount >= 1),
  11. Cast(DeathKnightSpells.PlagueStrike, ret => _toon.UnholyRuneCount == 2),
  12. Cast(DeathKnightSpells.FrostStrike),
  13. Cast(DeathKnightSpells.HornOfWinter, ret => _toon),
  14. Cast(DeathKnightSpells.PlagueLeech, ret => _toon.UnholyRuneCount == 1),
  15. Cast(DeathKnightSpells.PlagueStrike, ret => _toon.UnholyRuneCount == 1),
  16. new ActionAlwaysSucceed())), // This is more a safety spot here. If we fail to cast PL but are still in aoe mode: return to the top!
  17. Cast(DeathKnightSpells.FrostStrike, ret => _toon.CurrentRunicPower >= 88 || HasAura(_toon, DeathKnightSpells.KillingMachine, true), "because we have more or equal to 89 Runic Power or a Killing Machine proc"),
  18. Cast(DeathKnightSpells.HowlingBlast, ret => _toon.FrostRuneCount == 2 || _toon.DeathRuneCount == 2, "because we have extensive runes"),
  19. //Cast(DeathKnightSpells.SoulReaper, ret => _toontarget.HealthPercent <= 35, "because our target is lower or equal to 35 healthpercent"),
  20. Cast(DeathKnightSpells.PlagueStrike, ret => !HasAura(_toontarget, DeathKnightSpells.BloodPlague, true) || GetAuraTimeLeft(_toontarget, DeathKnightSpells.BloodPlague) < 1000, "because our target has no Blood Plague"),
  21. Cast(DeathKnightSpells.HowlingBlast, ret => HasAura(_toon, DeathKnightSpells.FreezingFog, true), "because we have a Rime proc"),
  22. Cast(DeathKnightSpells.FrostStrike, ret => _toon.CurrentRunicPower >= 76, "because we have more or equal to 77 Runic Power"),
  23. Cast(DeathKnightSpells.HowlingBlast),
  24. CastSensetive(DeathKnightSpells.BloodTap, ret => _toon, ret => StackCount(_toon, DeathKnightSpells.BloodCharge) >= 8 && SomeRunesDepleted()),
  25. Cast(DeathKnightSpells.FrostStrike, ret => _toon.CurrentRunicPower >= 40, "because we have mor or equal to 40 Runic Power"),
  26. Cast(DeathKnightSpells.HornOfWinter, ret => _toon, "because nothing else to do"),
  27. CastOnGround(DeathKnightSpells.DeathAndDecay, ret => _toontarget.Location, ret => _toon.UnholyRuneCount >= 0 ),
  28. Cast(DeathKnightSpells.PlagueLeech, "because nothing left to do"));
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement