public bool CanUseAA() { bool canHit = true; if (KoreanUtils.GetParam(champion.MainMenu, "supportmode") != null) { if (KoreanUtils.GetParamBool(champion.MainMenu, "supportmode") && champion.Player.CountAlliesInRange(1500f) > 0) { canHit = false; } } return(canHit); }
private void DrawDamage(EventArgs args) { if (Enabled()) { foreach ( Obj_AI_Hero champ in ObjectManager.Get <Obj_AI_Hero>() .Where(h => h.IsVisible && h.IsEnemy && h.IsValid && h.IsHPBarRendered)) { float damage = _amountOfDamage(champ); if (damage > 0) { Vector2 pos = champ.HPBarPosition; if (KoreanUtils.GetParamBool(champion.MainMenu, "killableindicator") && (damage > champ.Health + 50f)) { Render.Circle.DrawCircle(champ.Position, 100, Color.Red); Render.Circle.DrawCircle(champ.Position, 75, Color.Red); Render.Circle.DrawCircle(champ.Position, 50, Color.Red); Text.X = (int)pos.X + 40; Text.Y = (int)pos.Y - 20; Text.OnEndScene(); } if (KoreanUtils.GetParamBool(champion.MainMenu, "damageindicator")) { float healthAfterDamage = Math.Max(0, champ.Health - damage) / champ.MaxHealth; float posY = pos.Y + 20f; float posDamageX = pos.X + 12f + Width * healthAfterDamage; float posCurrHealthX = pos.X + 12f + Width * champ.Health / champ.MaxHealth; Drawing.DrawLine(posDamageX, posY, posDamageX, posY + Height, 2, barColor); float diff = (posCurrHealthX - posDamageX) + 3; float pos1 = pos.X + 9 + (107 * healthAfterDamage); for (int i = 0; i < diff; i++) { Drawing.DrawLine(pos1 + i, posY, pos1 + i, posY + Height, 1, comboDamageColor); } } } } } }
private bool UltimateUp() { bool b; if (KoreanUtils.GetParamBool(champion.MainMenu, "forceultusingmouse") && champion.MainMenu.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { b = champion.Spells.R.IsReady() && champion.Spells.R.CanCast(); } else { b = false; } return(b); }
private bool Enabled() { return((Active) && (_amountOfDamage != null) && ((KoreanUtils.GetParamBool(champion.MainMenu, "damageindicator")) || KoreanUtils.GetParamBool(champion.MainMenu, "killableindicator"))); }