本文整理汇总了C#中LeagueSharp.Common.InterruptableSpell类的典型用法代码示例。如果您正苦于以下问题:C# InterruptableSpell类的具体用法?C# InterruptableSpell怎么用?C# InterruptableSpell使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InterruptableSpell类属于LeagueSharp.Common命名空间,在下文中一共展示了InterruptableSpell类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
开发者ID:Chogart,项目名称:LeagueSharp-2,代码行数:7,代码来源:Draven.cs
示例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);
}
}
}
开发者ID:xlof,项目名称:folxuSharp,代码行数:31,代码来源:Program.cs
示例3: OnPossibleToInterrupt
public void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (E.IsReady() && unit.IsValidTarget(E.Range))
{
E.Cast(unit);
}
}
开发者ID:ChewyMoon,项目名称:Experimental,代码行数:7,代码来源:Draven.cs
示例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);
}
}
开发者ID:qktlfflzk,项目名称:Backup5.4,代码行数:7,代码来源:Ashe.cs
示例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);
}
}
开发者ID:CupidL0ve,项目名称:LeagueSharp,代码行数:9,代码来源:Thresh.cs
示例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);
}
}
开发者ID:CupidL0ve,项目名称:LeagueSharp,代码行数:10,代码来源:Lulu.cs
示例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);
}
}
开发者ID:werdbrian,项目名称:AIM-1,代码行数:11,代码来源:Warwick.cs
示例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);
}
}
开发者ID:werdbrian,项目名称:AIM-1,代码行数:12,代码来源:Skarner.cs
示例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);
}
}
开发者ID:werdbrian,项目名称:AIM-1,代码行数:12,代码来源:Ahri.cs
示例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);
}
开发者ID:werdbrian,项目名称:AIM-1,代码行数:15,代码来源:Soraka.cs
示例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();
}
}
}
开发者ID:bisiek,项目名称:LeagueSharp,代码行数:18,代码来源:Program.cs
示例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);
}
}
}
开发者ID:werdbrian,项目名称:AIM-1,代码行数:42,代码来源:Annie.cs
示例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);
}
}
开发者ID:hoangtien1617,项目名称:KurisuSolutions,代码行数:20,代码来源:Program.cs
示例14: OnInterruptableSpell
private void OnInterruptableSpell(Obj_AI_Hero unit, InterruptableSpell spell)
{
if (E.IsReady() && unit.IsValidTarget(E.Range))
E.Cast(unit);
}
开发者ID:ShineSharp,项目名称:LeagueRepo,代码行数:5,代码来源:Darius.cs
示例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);
}
开发者ID:Nickitee,项目名称:LeagueSharp,代码行数:6,代码来源:Program.cs
示例16: Interrupter_OnPosibleToInterrupt
private static void Interrupter_OnPosibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (!Wolf.Item("Interrupt").GetValue<bool>()) return;
Q.Cast(unit);
}
开发者ID:GuiltyWolf,项目名称:LeagueSharp,代码行数:5,代码来源:Program.cs
示例17: Interrupter_OnPossibleToInterrupt
static void Interrupter_OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (mustDebug)
Game.PrintChat(string.Format("OnPosibleToInterrupt -> {0} cast {1}", unit.SkinName, spell.SpellName));
var EInterrupt = Config.Item("EInterrupt").GetValue<bool>();
var packetCast = Config.Item("PacketCast").GetValue<bool>();
if (EInterrupt && E.IsReady() && unit.IsValidTarget(E.Range))
{
E.CastIfHitchanceEquals(unit, unit.IsMoving ? HitChance.High : HitChance.Medium, packetCast);
}
}
开发者ID:qktlfflzk,项目名称:Backup5.4,代码行数:14,代码来源:Program.cs
示例18: OnPossibleToInterrupt
public override void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
{
if (spell.DangerLevel < InterruptableDangerLevel.Medium || unit.IsAlly)
return;
if (Menu.Item("Misc_useE_Interrupt").GetValue<bool>() && unit.IsValidTarget(E.Range))
E.Cast(unit, UsePackets());
}
开发者ID:InjectionDev,项目名称:LeagueSharp-xSLx,代码行数:8,代码来源:Vayne.cs
示例19: OnPossibleToInterrupt
private void OnPossibleToInterrupt(Obj_AI_Hero unit, InterruptableSpell spell)
{
if (Player.IsDead || !GetValue<bool>("Interrupt", "Q") ||
!GetValue<bool>("Interrupt", unit.ChampionName + "_" + spell.Slot) || !Q.CanCast(unit))
{
return;
}
Q.CastIfHitchanceEquals(unit, HitChance.High, PacketCast);
}
开发者ID:LSharpAura,项目名称:LeagueSharp-1,代码行数:9,代码来源:Amumu.cs
示例20: OnPossibleToInterrupt
private void OnPossibleToInterrupt(Obj_AI_Hero unit, InterruptableSpell spell)
{
if (Player.IsDead || !GetValue<bool>("Interrupt", "EQ") ||
!GetValue<bool>("Interrupt", unit.ChampionName + "_" + spell.Slot) || !Q.IsReady())
{
return;
}
if (E.CanCast(unit) && Player.Mana >= Q.Instance.ManaCost + E.Instance.ManaCost)
{
var predE = E.GetPrediction(unit);
if (predE.Hitchance >= HitChance.High &&
E.Cast(predE.CastPosition.Extend(Player.ServerPosition, -E.Width), PacketCast) &&
Q.Cast(predE.CastPosition, PacketCast))
{
return;
}
}
foreach (var flag in
Flag.Where(i => unit.Distance(i) <= 60 || Q2.WillHit(unit, i.ServerPosition)))
{
Q.Cast(flag.ServerPosition, PacketCast);
}
}
开发者ID:LSharpAura,项目名称:LeagueSharp-1,代码行数:23,代码来源:JarvanIV.cs
注:本文中的LeagueSharp.Common.InterruptableSpell类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论