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(); } } } }