Ejemplo n.º 1
0
 internal override void OnHeroAutoattackHero(AIHeroClient sender, AIHeroClient target)
 {
     if (PassiveMenu.IsChecked("use.W.ego") && sender.IsEnemy && target.IsMe)
     {
         W.CastIfInRange(CastLogics.TargetType.Me, W.Range, GetSwordPos());
     }
     if (PassiveMenu.IsChecked("use.W.buddy") && sender.IsEnemy && target.IsAlly)
     {
         W.CastIfInRange(CastLogics.TargetType.Buddy, W.Range, GetSwordPos());
     }
 }
Ejemplo n.º 2
0
 internal override void OnCombo()
 {
     if (ComboMenu.IsChecked("use.Q.ifCollidewithEnemy"))
     {
         Q.CastifBetween(CastLogics.TargetType.AnyEnemy, GetSwordPos(), Champions.Me.Position, 50);
     }
     if (ComboMenu.IsChecked("use.Q.range"))
     {
         Q.CastIfInRange(CastLogics.TargetType.AnyEnemy, Q.Range, Champions.Me.Position);
     }
     if (ComboMenu.IsChecked("use.E"))
     {
         E.CastLogicLinearExtendedRange(CastLogics.CollisionType.None, PassiveMenu.IsChecked("use.E.intower.combo") ? CastLogics.TargetType.EnemynotNearTower : CastLogics.TargetType.Enemy, DamageType.Physical, Champions.Me.GetAutoAttackRange());
     }
 }