本文整理汇总了C#中Obj_AI_Base.brandpassive方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.brandpassive方法的具体用法?C# Obj_AI_Base.brandpassive怎么用?C# Obj_AI_Base.brandpassive使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.brandpassive方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Obj_AI_Base_OnBasicAttack
private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
{
CurrentTarget = TargetSelector.GetTarget(W.Range, DamageType.Magical);
//(CurrentTarget.Hero != Champion.Yasuo && sender.Mana <= 90)//
if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && sender == CurrentTarget && !sender.IsDashing() && sender.Type == GameObjectType.AIHeroClient && sender.IsValidTarget(W.Range) && W.IsReady() && sender.IsEnemy)
{
if (CurrentTarget.Hero != Champion.Yasuo)
{
W.Cast(sender.ServerPosition);
//Chat.Print("Basic Attack:"+args.SData.Name);
}
else if (sender.Mana <= 90)
{
W.Cast(sender.ServerPosition);
}
}
if (sender.brandpassive() && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && sender == CurrentTarget && !sender.IsDashing() && sender.Type == GameObjectType.AIHeroClient && sender.IsValidTarget(Q.Range) && Q.IsReady() && sender.IsEnemy)
{
if (CurrentTarget.Hero != Champion.Yasuo && Q.GetPrediction(sender).HitChance >= HitChance.Medium)
{
Q.Cast(sender.ServerPosition);
//Chat.Print("Basic Attack:"+args.SData.Name);
}
else if (sender.Mana <= 90 && Q.GetPrediction(sender).HitChance >= HitChance.Medium)
{
Q.Cast(sender.ServerPosition);
}
}
}
示例2: Interrupter_OnInterruptableSpell
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (!sender.IsEnemy || !AutoMenu.checkbox("Int") || sender == null || e == null)
{
return;
}
if (e.DangerLevel >= Common.danger(AutoMenu) && sender.IsKillable(Q.Range))
{
if (sender.brandpassive())
{
if (Q.IsReady())
{
Q.Cast(sender, Q.hitchance(Menuini));
}
}
else
{
if (E.IsReady() && Q.IsReady())
{
if (E.Cast(sender))
{
if (sender.brandpassive())
{
Q.Cast(sender, Q.hitchance(Menuini));
}
}
}
}
}
}
示例3: Qlogic
public static void Qlogic(Obj_AI_Base target)
{
if (target == null)
{
return;
}
var Combomode = Common.orbmode(Orbwalker.ActiveModes.Combo);
var JungleClearmode = Common.orbmode(Orbwalker.ActiveModes.JungleClear);
if (Combomode)
{
if (ComboMenu.checkbox("Qp"))
{
if (target.brandpassive())
{
Q.Cast(target, Q.hitchance(Menuini));
}
}
else
{
Q.Cast(target, Q.hitchance(Menuini));
}
}
if (JungleClearmode)
{
var minion = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(m => m.MaxHealth).FirstOrDefault(m => Q.GetPrediction(m).HitChance >= HitChance.High);
if (minion != null)
{
Q.Cast(minion);
}
}
}
示例4: Wlogic
public static void Wlogic(Obj_AI_Base target)
{
if (target == null)
{
return;
}
var Combomode = Common.orbmode(Orbwalker.ActiveModes.Combo);
var JungleClearmode = Common.orbmode(Orbwalker.ActiveModes.JungleClear);
var enemies = EntityManager.Heroes.Enemies.Where(e => e.IsKillable(W.Range) && e.IsKillable());
var pred = Prediction.Position.PredictCircularMissileAoe(enemies.Cast<Obj_AI_Base>().ToArray(), W.Range, W.Width + 50, W.CastDelay, W.Speed);
var castpos = pred.OrderByDescending(p => p.GetCollisionObjects<AIHeroClient>().Length).FirstOrDefault(p => p.CollisionObjects.Contains(target));
if (Combomode)
{
if (ComboMenu.checkbox("Wp"))
{
if (castpos != null && castpos.CollisionObjects.Length > 1)
{
W.Cast(castpos.CastPosition);
}
if (target.brandpassive() || target.HasBuffOfType(BuffType.Slow) || !target.CanMove)
{
W.Cast(target, W.hitchance(Menuini));
}
}
else
{
W.Cast(target, W.hitchance(Menuini));
}
}
if (JungleClearmode)
{
var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters().OrderByDescending(m => m.MaxHealth).Where(e => e.IsKillable(W.Range) && e.IsKillable());
var loc = EntityManager.MinionsAndMonsters.GetCircularFarmLocation(minions.ToArray(), W.Width + 75, (int)W.Range + 50, W.CastDelay, W.Speed);
var farmpos = loc.CastPosition;
if (farmpos != null)
{
W.Cast(farmpos);
}
}
}
示例5: Elogic
public static void Elogic(Obj_AI_Base target)
{
if (target == null)
{
return;
}
var Combomode = Common.orbmode(Orbwalker.ActiveModes.Combo);
var JungleClearmode = Common.orbmode(Orbwalker.ActiveModes.JungleClear);
if (Combomode)
{
if (ComboMenu.checkbox("Ep") && target.brandpassive())
{
E.Cast(target);
}
else
{
E.Cast(target);
}
}
if (JungleClearmode)
{
var minionpassive = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(m => m.brandpassive() && m.IsKillable(E.Range));
if (minionpassive != null)
{
foreach (var minion in minionpassive)
{
var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(e => e.IsKillable(E.Range) && e.IsKillable());
var count = minions.Count(m => m.IsInRange(minion, 300));
if (count >= 2)
{
E.Cast(minion);
}
}
}
}
}