// Token: 0x06000182 RID: 386 RVA: 0x0000D744 File Offset: 0x0000B944 public void ChargeAway(TargetManager targetManager) { ChargeOfDarkness chargeOfDarkness = this.charge; if (chargeOfDarkness == null || !chargeOfDarkness.Ability.CanBeCasted(true)) { return; } Unit9 unit = (from x in targetManager.EnemyUnits orderby x.IsHero, x.Distance(base.Owner) descending select x).FirstOrDefault((Unit9 x) => x.Distance(base.Owner) > 2000f); if (unit == null) { return; } this.charge.Ability.UseAbility(unit, false, false); base.OrbwalkSleeper.Sleep(0.5f); }
public SpiritBreaker(Unit9 owner, MultiSleeper abilitySleeper, Sleeper orbwalkSleeper, ControllableUnitMenu menu) : base(owner, abilitySleeper, orbwalkSleeper, menu) { this.ComboAbilities = new Dictionary <AbilityId, Func <ActiveAbility, UsableAbility> > { { AbilityId.spirit_breaker_charge_of_darkness, x => this.charge = new ChargeOfDarkness(x) }, { AbilityId.spirit_breaker_bulldoze, x => this.bulldoze = new SpeedBuffAbility(x) }, { AbilityId.spirit_breaker_nether_strike, x => this.strike = new NukeAbility(x) }, { AbilityId.item_phase_boots, x => this.phase = new SpeedBuffAbility(x) }, { AbilityId.item_blade_mail, x => this.bladeMail = new ShieldAbility(x) }, { AbilityId.item_spirit_vessel, x => this.vessel = new DebuffAbility(x) }, { AbilityId.item_urn_of_shadows, x => this.urn = new DebuffAbility(x) }, { AbilityId.item_mask_of_madness, x => this.mom = new BuffAbility(x) }, { AbilityId.item_orchid, x => this.orchid = new DisableAbility(x) }, { AbilityId.item_bloodthorn, x => this.bloodthorn = new Bloodthorn(x) }, { AbilityId.item_nullifier, x => this.nullifier = new Nullifier(x) }, { AbilityId.item_heavens_halberd, x => this.halberd = new DisableAbility(x) }, }; }