本文整理汇总了C#中LeagueSharp.Common.InterruptableSpell类的典型用法代码示例。如果您正苦于以下问题:C# InterruptableSpell类的具体用法?C# InterruptableSpell怎么用?C# InterruptableSpell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InterruptableSpell类属于LeagueSharp.Common命名空间,在下文中一共展示了InterruptableSpell类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnPosibleToInterrupt
public void OnPosibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (E.IsReady() && Config.Item("EInterruptable").GetValue<bool>() && unit.IsValidTarget(E.Range))
{
E.Cast(unit);
}
}
示例2: BlitzOnInterruptableSpell
private static void BlitzOnInterruptableSpell(Obj_AI_Base unit, InterruptableSpell spell)
{
if (_menu.Item("interruptq").GetValue<bool>() && _q.IsReady())
{
if (unit.Distance(Me.ServerPosition, true) <= _q.RangeSqr)
{
var prediction = _q.GetPrediction(unit);
if (prediction.Hitchance >= HitChance.Low)
{
_q.Cast(prediction.CastPosition);
}
}
}
if (_menu.Item("interruptr").GetValue<bool>() && _r.IsReady())
{
if (unit.Distance(Me.ServerPosition, true) <= _r.RangeSqr)
{
_r.Cast();
}
}
if (_menu.Item("interrupte").GetValue<bool>() && _e.IsReady())
{
if (unit.Distance(Me.ServerPosition, true) <= _e.RangeSqr)
{
_e.CastOnUnit(Me);
Me.IssueOrder(GameObjectOrder.AttackUnit, unit);
}
}
}
示例3: OnPossibleToInterrupt
public void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (E.IsReady() && unit.IsValidTarget(E.Range))
{
E.Cast(unit);
}
}
示例4: Game_OnPossibleToInterrupt
public void Game_OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (R.IsReady() && Config.Item("RInterruptable" + Id).GetValue<bool>() && unit.IsValidTarget(1500))
{
R.Cast(unit);
}
}
示例5: Interrupter_OnPossibleToInterrupt
public override void Interrupter_OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell) {
if (!GetValue<bool>("InterruptSpells")) return;
if (ObjectManager.Player.Distance(unit) < E.Range && E.IsReady()) {
E.Cast(unit);
} else if (ObjectManager.Player.Distance(unit) < Q.Range && Q.IsReady()) {
Q.Cast(unit);
}
}
示例6: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (spell.DangerLevel < InterruptableDangerLevel.High || unit.IsAlly)
return;
if (W.CastCheck(unit, "InterruptW"))
{
W.CastOnUnit(unit, UsePackets);
}
}
示例7: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (spell.DangerLevel < InterruptableDangerLevel.High || unit.IsAlly)
{
return;
}
if (R.CastCheck(unit, "Interrupt.R"))
{
R.Cast(unit);
}
}
示例8: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (spell.DangerLevel < InterruptableDangerLevel.High || unit.IsAlly)
{
return;
}
if (R.IsReady() && unit.IsValidTarget(R.Range))
{
R.Cast(unit);
}
}
示例9: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (spell.DangerLevel < InterruptableDangerLevel.High || unit.IsAlly)
{
return;
}
if (E.CastCheck(unit, "Interrupt.E"))
{
E.CastIfHitchanceEquals(unit, HitChance.Medium);
}
}
示例10: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Base target, InterruptableSpell spell)
{
if (!ConfigValue<bool>("InterruptE") ||
spell.DangerLevel < InterruptableDangerLevel.High ||
target.IsAlly)
return;
if (!target.IsValidTarget(E.Range))
return;
if (!E.IsReady())
return;
E.Cast(target);
}
示例11: BlitzInterruptableSpell
private static void BlitzInterruptableSpell(Obj_AI_Base unit, InterruptableSpell spell)
{
Obj_AI_Hero target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
var qSpell = Config.Item("qint").GetValue<bool>();
var rSpell = Config.Item("rint").GetValue<bool>();
if (qSpell)
{
Q.Cast(target);
}
if (rSpell)
{
if (unit.Distance(Player.ServerPosition, true) <= R.RangeSqr)
{
R.Cast();
}
}
}
示例12: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (spell.DangerLevel < InterruptableDangerLevel.High || unit.IsAlly)
{
return;
}
if (GetPassiveStacks() >= 4)
{
if (Q.CastCheck(unit, "Interrupt.Q"))
{
Q.Cast(unit);
return;
}
if (W.CastCheck(unit, "Interrupt.W"))
{
W.CastOnUnit(unit);
return;
}
}
if (GetPassiveStacks() == 3)
{
if (E.IsReady())
{
E.Cast();
if (Q.CastCheck(unit, "Interrupt.Q"))
{
Q.Cast(unit);
return;
}
if (W.CastCheck(unit, "Interrupt.W"))
{
W.CastOnUnit(unit);
return;
}
}
if (Q.CastCheck(unit, "Interrupt.Q") && W.CastCheck(unit, "Interrupt.W"))
{
Q.Cast(unit);
W.CastOnUnit(unit);
}
}
}
示例13: BlitzOnInterruptableSpell
private static void BlitzOnInterruptableSpell(Obj_AI_Base unit, InterruptableSpell spell)
{
if (_menu.Item("interruptq").GetValue<bool>() && _q.IsReady())
{
if (unit.Distance(Me.ServerPosition, true) <= _q.RangeSqr)
_q.CastIfHitchanceEquals(unit, HitChance.Medium);
}
if (_menu.Item("interruptr").GetValue<bool>() && _r.IsReady())
{
if (unit.Distance(Me.ServerPosition, true) <= _r.RangeSqr)
_r.Cast();
}
if (_menu.Item("interrupte").GetValue<bool>() && _e.IsReady())
{
if (unit.Distance(Me.ServerPosition, true) <= _e.RangeSqr)
_e.CastOnUnit(Me);
}
}
示例14: OnInterruptableSpell
private void OnInterruptableSpell(Obj_AI_Hero unit, InterruptableSpell spell)
{
if (E.IsReady() && unit.IsValidTarget(E.Range))
E.Cast(unit);
}
示例15: Interrupter_OnPosibleToInterrupt
private static void Interrupter_OnPosibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (!Config.Item("InterruptSpells").GetValue<bool>()) return;
E.Cast(unit.ServerPosition);
}