本文整理汇总了C#中Obj_AI_Hero.IsChannelingImportantSpell方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Hero.IsChannelingImportantSpell方法的具体用法?C# Obj_AI_Hero.IsChannelingImportantSpell怎么用?C# Obj_AI_Hero.IsChannelingImportantSpell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Hero
的用法示例。
在下文中一共展示了Obj_AI_Hero.IsChannelingImportantSpell方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CanMove
public static bool CanMove(Obj_AI_Hero target)
{
return !(target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
target.IsStunned || target.IsChannelingImportantSpell());
}
示例2: CanMove
public static bool CanMove(Obj_AI_Hero target)
{
if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
target.IsStunned || (target.IsChannelingImportantSpell() && !target.IsMoving) || target.MoveSpeed < 50 || Prediction.GetPrediction(target,0.5f).Hitchance > HitChance.Dashing)
{
return false;
}
else
return true;
}
示例3: CanMove
public static bool CanMove(Obj_AI_Hero target)
{
if(target.MoveSpeed < 50)
return false;
else if (!Player.CanMove || target.IsStunned || target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
target.HasBuffOfType(BuffType.Knockback) || target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) || target.IsChannelingImportantSpell())
{
return false;
}
else
return true;
}
示例4: CanMove
public static bool CanMove(Obj_AI_Hero target)
{
if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
target.IsStunned || target.IsChannelingImportantSpell())
{
Program.debug("!canMov" + target.ChampionName);
return false;
}
else
return true;
}
示例5: IsEnemyImmobile
/// <summary>
/// Enemy Immobile
/// </summary>
/// <param name="target"></param>
/// <returns></returns>
public static bool IsEnemyImmobile(Obj_AI_Hero target)
{
if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) ||
target.HasBuffOfType(BuffType.Knockup) ||
target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) ||
target.HasBuffOfType(BuffType.Knockback) ||
target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
target.IsStunned || target.IsChannelingImportantSpell())
{
return true;
}
else
{
return false;
}
}
示例6: CanMove
public static bool CanMove(Obj_AI_Hero target)
{
if (target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Snare) || target.HasBuffOfType(BuffType.Knockup) ||
target.HasBuffOfType(BuffType.Charm) || target.HasBuffOfType(BuffType.Fear) || target.HasBuffOfType(BuffType.Knockback) ||
target.HasBuffOfType(BuffType.Taunt) || target.HasBuffOfType(BuffType.Suppression) ||
target.IsStunned || (target.IsChannelingImportantSpell() && !target.IsMoving) || target.MoveSpeed < 10)
{
return false;
}
else
return true;
}
示例7: Interrupter_OnPossibleToInterrupt
public override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (Config.Item("MINTERRUPTE").GetValue<bool>() && Spells[E].IsInRange(sender))
Spells[E].Cast();
if (Config.Item("MINTERRUPTRE").GetValue<bool>() && Spells[R].IsInRange(sender) && sender.IsChannelingImportantSpell())
{
if (Spells[R].IsReady() && Spells[E].IsReady())
{
Spells[R].CastOnUnit(sender);
Spells[E].Cast();
}
}
}
示例8: Interrupter_OnPossibleToInterrupt
protected override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (sender.IsChannelingImportantSpell())
{
if (Spells[R].IsReady() && Helpers.BallMgr.Position.Distance(sender.ServerPosition) < Spells[R].Range)
Spells[R].Cast(ObjectManager.Player.ServerPosition, true);
else if (Spells[Q].IsReady() && Spells[R].IsReady() && ObjectManager.Player.ServerPosition.Distance(sender.ServerPosition) < Spells[Q].Range / 2f)
{
Spells[Q].Cast(sender, true);
Spells[W].Cast(ObjectManager.Player.ServerPosition, true);
}
}
}
示例9: Interrupter_OnPossibleToInterrupt
public override void Interrupter_OnPossibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
{
if (sender.IsChannelingImportantSpell())
{
if (Spells[R].IsReady() && Ball.Position.Distance(sender.ServerPosition) < Spells[R].Range)
Ball.Post(BallMgr.Command.Shockwave, null);
else if (Spells[Q].IsReady() && Spells[R].IsReady() && ObjectManager.Player.ServerPosition.Distance(sender.ServerPosition) < Spells[Q].Range / 2f)
{
Ball.Post(BallMgr.Command.Attack, sender);
Ball.Post(BallMgr.Command.Shockwave, null);
}
}
}
示例10: IsImmobileTarget
public static bool IsImmobileTarget(Obj_AI_Hero target)
{
return target.Buffs.Count(p => IsImmobilizeBuff(p.Type)) > 0 || target.IsChannelingImportantSpell();
}
示例11: chanellingChecker
public static bool chanellingChecker(Obj_AI_Hero target)
{
if (target.HasBuff("MissFortuneBulletTime") || target.HasBuff("katarinaultibroker") || target.HasBuff("missfortunebulletsound")
|| target.IsChannelingImportantSpell())
{
return true;
}
else
{
return false;
}
}
示例12: CanMove
private static bool CanMove(Obj_AI_Hero e)
{
if (e.HasBuffOfType(BuffType.Stun) || e.HasBuffOfType(BuffType.Snare) || e.HasBuffOfType(BuffType.Knockup) ||
e.HasBuffOfType(BuffType.Charm) || e.HasBuffOfType(BuffType.Fear) || e.HasBuffOfType(BuffType.Knockback) ||
e.HasBuffOfType(BuffType.Taunt) || e.HasBuffOfType(BuffType.Suppression) ||
e.IsStunned || e.IsChannelingImportantSpell() || e.MoveSpeed < 50f)
{
return false;
}
else
{
return true;
}
}