Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Buddy.BehaviorTree;
- using DefaultCombat.Core;
- using DefaultCombat.Helpers;
- namespace DefaultCombat.Routines
- {
- public class InnovativeOrdnance : RotationBase
- {
- public override string Name { get { return "Mercenary Innovative Ordnance"; } }
- public override Composite Buffs
- {
- get
- {
- return new PrioritySelector(
- Spell.Buff("Combustible Gas Cylinder"),
- Spell.Buff("Hunter's Boon")
- );
- }
- }
- public override Composite Cooldowns
- {
- get
- {
- return new LockSelector(
- Spell.Buff("Determination", ret => Me.IsStunned),
- Spell.Buff("Vent Heat", ret => Me.ResourcePercent() >= 70),
- Spell.Buff("Supercharged Gas", ret => Me.BuffCount("Supercharge") == 10),
- Spell.Buff("Energy Shield", ret => Me.HealthPercent <= 40),
- Spell.Buff("Kolto Overload", ret => Me.HealthPercent <= 30)
- );
- }
- }
- public override Composite SingleTarget
- {
- get
- {
- return new LockSelector(
- //Movement
- CombatMovement.CloseDistance(Distance.Ranged),
- new Decorator(ret => Me.ResourcePercent() > 75,
- new LockSelector(
- Spell.Cast("Mag Shot", ret => Me.HasBuff("Innovative Particle Accelerator")),
- Spell.Cast("Rapid Shots")
- )),
- //Rotation
- Spell.DoT("Serrated Shot", "", 15000),
- Spell.DoT("Incendiary Missile", "", 15000),
- Spell.Cast("Mag Shot"),
- Spell.Cast("Unload"),
- Spell.Cast("Supercharged Gas"),
- Spell.Cast("Electro Net"),
- Spell.Cast("Thermal Detonator"),
- Spell.Cast("Mag Shot"),
- Spell.Cast("Power Shot", ret => Me.HasBuff("Speed to Burn")),
- Spell.Cast("Mag Shot"),
- Spell.Cast("Power Shot"),
- Spell.Cast("Power Shot")
- );
- }
- }
- public override Composite AreaOfEffect
- {
- get
- {
- return new Decorator(ret => Targeting.ShouldAOE,
- new LockSelector(
- Spell.CastOnGround("Death from Above", ret => Me.CurrentTarget.Distance > Distance.MeleeAoE),
- Spell.Cast("Fusion Missle", ret => Me.HasBuff("Thermal Sensor Override")),
- Spell.Cast("Explosive Dart"))
- );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement