private static float GetComboDamage(Obj_AI_Hero target) { double damage = 0d; if (_player.IsCougar()) { if (_takedown.IsReady()) { damage += target.IsHunted() ? _player.GetSpellDamage(target, SpellSlot.Q) * 0.33f : _player.GetSpellDamage(target, SpellSlot.Q); } if (_pounce.IsReady()) { damage += _player.GetSpellDamage(target, SpellSlot.W); } if (_swipe.IsReady()) { damage += _player.GetSpellDamage(target, SpellSlot.E); } } else { if (_javelinToss.IsReady()) { damage += GetActualSpearDamage(target); } } return((float)damage); }
private static void SwitchKillsteal() { Obj_AI_Hero target = TargetSelector.GetTarget(_javelinToss.Range, TargetSelector.DamageType.Magical); if (target == null || !_menu.Item("killstealSwitchForm").GetValue <bool>()) { return; } float pounceDistance = target.IsHunted() ? 740 : 400; if (_player.IsCougar() && _player.Distance(target.Position) > pounceDistance && _player.Distance(target.Position) < _javelinToss.Range && (GetActualSpearDamage(target) > target.Health) && _cooldownTracker.CheckSpell(CooldownTracker.CooldownSpell.Javelin)) // TODO add a hardcoded getDamage when in cougar form. { if (_pounce.IsReady()) { _pounce.Cast(Game.CursorPos); } if (_aspectOfTheCougar.IsReady()) { _aspectOfTheCougar.Cast(); } if (_javelinToss.GetPrediction(target).Hitchance >= HitChance.Medium && _javelinToss.GetPrediction(target).Hitchance != HitChance.Collision) { } { _javelinToss.Cast(target); } } }
private static float GetComboDamage(Obj_AI_Hero target) { double damage = 0d; if (_player.IsCougar()) { if (_takedown.IsReady()) { damage += target.IsHunted() ? _player.GetSpellDamage(target, SpellSlot.Q) * 0.33f : _player.GetSpellDamage(target, SpellSlot.Q); } if (_pounce.IsReady()) { damage += _player.GetSpellDamage(target, SpellSlot.W); } if (_swipe.IsReady()) { damage += _player.GetSpellDamage(target, SpellSlot.E); } } else { if (_javelinToss.IsReady()) { damage += GetActualSpearDamage(target); } } return (float) damage; }
private static void OnCombo(Obj_AI_Hero target) { var pounceDistance = target.IsHunted() ? 730 : _pounce.Range; if (_player.IsCougar()) { /*if (_menu.Item("useTakedown").GetValue<bool>() && _takedown.IsReady() && _player.Distance(target.Position) <= _takedown.Range) { _takedown.Cast(true); }*/ if (_pounce.IsReady() && MainMenu.Item("usePounce").GetValue<bool>()) { if (MainMenu.Item("turretSafety").GetValue<bool>() && target.UnderTurret(true)) { return; } if (MainMenu.Item("pounceHunted").GetValue<bool>()) { if (target.IsHunted() && _player.Distance(target.ServerPosition) <= pounceDistance && _player.Distance(target) > _swipe.Range) { _pounce.Cast(target.ServerPosition); } if (!target.IsHunted() && _player.GetSpellDamage(target, SpellSlot.W) > target.Health + 20 && _player.Distance(target.ServerPosition) <= pounceDistance) { _pounce.Cast(target.ServerPosition); } } else { if (_player.Distance(target) <= pounceDistance && _player.Distance(target) > _swipe.Range) { _pounce.Cast(target.ServerPosition); } } } if (MainMenu.Item("useSwipe").GetValue<bool>() && _swipe.IsReady() && _player.Distance(target.Position, true) <= _swipe.RangeSqr) { _swipe.Cast(target); } //I'd call it 0.5% ? if (MainMenu.Item("useHuman").GetValue<bool>()) { if (_player.Distance(target.ServerPosition) > pounceDistance && HQ < 0.5 && _player.Distance(target.ServerPosition) < _javelinToss.Range && CW < 0.5) { var prediction = _javelinToss.GetPrediction(target); if (_aspectOfTheCougar.IsReady() && prediction.Hitchance >= HitChance.Medium) { _aspectOfTheCougar.Cast(); //Utility.DelayAction.Add(200, () => _javelinToss.Cast(prediction.CastPosition)); } } } } else { if (MainMenu.Item("useJavelin").GetValue<bool>() && _javelinToss.IsReady() && target.IsValidTarget(_javelinToss.Range) && _player.Distance(target.Position) <= MainMenu.Item("javelinRange").GetValue<Slider>().Value) { _javelinToss.CastIfHitchanceEquals(target, CustomHitChance); } if (MainMenu.Item("useBushwhack").GetValue<bool>() && _bushwhack.IsReady() && target.IsValidTarget(_bushwhack.Range) && _player.Distance(target.Position) <= _bushwhack.Range) { _bushwhack.CastIfHitchanceEquals(target, CustomHitChance); } if (MainMenu.Item("useCougar").GetValue<bool>() && (CW < 0.2) && (CQ < 0.2) && (CE < 0.2) && !_javelinToss.IsReady() && _player.Distance(target) <= pounceDistance) { if (MainMenu.Item("pounceHunted").GetValue<bool>()) {} if (_aspectOfTheCougar.IsReady()) { _aspectOfTheCougar.Cast(); } } } }
private static void OnCombo(Obj_AI_Hero target) { var pounceDistance = target.IsHunted() ? 730 : _pounce.Range; if (_player.IsCougar()) { /*if (_menu.Item("useTakedown").GetValue<bool>() && _takedown.IsReady() && * _player.Distance(target.Position) <= _takedown.Range) * { * _takedown.Cast(true); * }*/ if (_pounce.IsReady() && MainMenu.Item("usePounce").GetValue <bool>()) { if (MainMenu.Item("turretSafety").GetValue <bool>() && target.UnderTurret(true)) { return; } if (MainMenu.Item("pounceHunted").GetValue <bool>()) { if (target.IsHunted() && _player.Distance(target.ServerPosition) <= pounceDistance && _player.Distance(target) > _swipe.Range) { _pounce.Cast(target.ServerPosition); } if (!target.IsHunted() && _player.GetSpellDamage(target, SpellSlot.W) > target.Health + 20 && _player.Distance(target.ServerPosition) <= pounceDistance) { _pounce.Cast(target.ServerPosition); } } else { if (_player.Distance(target) <= pounceDistance && _player.Distance(target) > _swipe.Range) { _pounce.Cast(target.ServerPosition); } } } if (MainMenu.Item("useSwipe").GetValue <bool>() && _swipe.IsReady() && _player.Distance(target.Position, true) <= _swipe.RangeSqr) { _swipe.Cast(target); } //I'd call it 0.5% ? if (MainMenu.Item("useHuman").GetValue <bool>()) { if (_player.Distance(target.ServerPosition) > pounceDistance && HQ < 0.5 && _player.Distance(target.ServerPosition) < _javelinToss.Range && CW < 0.5) { var prediction = _javelinToss.GetPrediction(target); if (_aspectOfTheCougar.IsReady() && prediction.Hitchance >= HitChance.Medium) { _aspectOfTheCougar.Cast(); //Utility.DelayAction.Add(200, () => _javelinToss.Cast(prediction.CastPosition)); } } } } else { if (MainMenu.Item("useJavelin").GetValue <bool>() && _javelinToss.IsReady() && target.IsValidTarget(_javelinToss.Range) && _player.Distance(target.Position) <= MainMenu.Item("javelinRange").GetValue <Slider>().Value) { _javelinToss.CastIfHitchanceEquals(target, CustomHitChance); } if (MainMenu.Item("useBushwhack").GetValue <bool>() && _bushwhack.IsReady() && target.IsValidTarget(_bushwhack.Range) && _player.Distance(target.Position) <= _bushwhack.Range) { _bushwhack.CastIfHitchanceEquals(target, CustomHitChance); } if (MainMenu.Item("useCougar").GetValue <bool>() && (CW < 0.2) && (CQ < 0.2) && (CE < 0.2) && !_javelinToss.IsReady() && _player.Distance(target) <= pounceDistance) { if (MainMenu.Item("pounceHunted").GetValue <bool>()) { } if (_aspectOfTheCougar.IsReady()) { _aspectOfTheCougar.Cast(); } } } }
private static void OnCombo(Obj_AI_Hero target) { if (_menu.Item("miscIgnite").GetValue <bool>() && Ignite.IsReady() && Ignite.GetDamage(target) > target.Health) { Ignite.Cast(target); } float pounceDistance = target.IsHunted() ? 740 : _pounce.Range; if (_player.IsCougar()) { if (_menu.Item("useTakedown").GetValue <bool>() && _takedown.IsReady() && _player.Distance(target.Position) <= _takedown.Range) { _takedown.Cast(true); } if (_pounce.IsReady() && _menu.Item("usePounce").GetValue <bool>()) { if (_menu.Item("turretSafety").GetValue <bool>() && IsUnderEnemyTurret(target)) { ShowNotification("Target is under turret, won't pounce.", Color.Red, 3100); return; } if (target.IsHunted() && _player.Distance(target.Position) <= 740) { _pounce.Cast(target.ServerPosition); } else if (_player.Distance(target.Position) <= 400) { _pounce.Cast(target.Position); } } if (_menu.Item("useSwipe").GetValue <bool>() && _swipe.IsReady() && _player.Distance(target.Position) <= _swipe.RangeSqr) { if (!_pounce.IsReady()) { _swipe.Cast(target); } } if (_menu.Item("useHuman").GetValue <bool>()) { if (!_pounce.IsReady() && _player.Distance(target.Position) > pounceDistance && _cooldownTracker.CheckSpell(CooldownTracker.CooldownSpell.Javelin) && _javelinToss.GetPrediction(target).Hitchance >= CustomHitChance) { if (_aspectOfTheCougar.IsReady()) { _aspectOfTheCougar.Cast(); } } } } else { if (_menu.Item("useJavelin").GetValue <bool>() && _javelinToss.IsReady() && target.IsValidTarget(_javelinToss.Range) && _player.Distance(target.Position) <= _javelinToss.Range) { _javelinToss.CastIfHitchanceEquals(target, CustomHitChance); } if (_menu.Item("useBushwhack").GetValue <bool>() && _bushwhack.IsReady() && target.IsValidTarget(_bushwhack.Range) && _player.Distance(target.Position) <= _bushwhack.Range) { _bushwhack.CastIfHitchanceEquals(target, CustomHitChance); } if (target.IsHunted() && !_javelinToss.IsReady() && _player.Distance(target.Position) < pounceDistance) { if (_aspectOfTheCougar.IsReady() && _menu.Item("useCougar").GetValue <bool>()) { _aspectOfTheCougar.Cast(); } } } }