本文整理汇总了C#中EloBuddy.LSGetAutoAttackDamage方法的典型用法代码示例。如果您正苦于以下问题:C# EloBuddy.LSGetAutoAttackDamage方法的具体用法?C# EloBuddy.LSGetAutoAttackDamage怎么用?C# EloBuddy.LSGetAutoAttackDamage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EloBuddy
的用法示例。
在下文中一共展示了EloBuddy.LSGetAutoAttackDamage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Obj_AI_Hero_OnProcessSpellCast
private static void Obj_AI_Hero_OnProcessSpellCast(EloBuddy.Obj_AI_Base sender, EloBuddy.GameObjectProcessSpellCastEventArgs args)
{
if (sender.IsEnemy)
{
if (Player != null && spells[Spells.R].IsReady())
{
if ((!(sender is EloBuddy.AIHeroClient) || args.SData.IsAutoAttack()) && args.Target != null
&& args.Target.NetworkId == Player.NetworkId)
{
incomingDamage.Add(
Player.ServerPosition.LSDistance(sender.ServerPosition) / args.SData.MissileSpeed + EloBuddy.Game.Time,
(float)sender.LSGetAutoAttackDamage(Player));
}
else if (sender is EloBuddy.AIHeroClient)
{
var attacker = (EloBuddy.AIHeroClient)sender;
var slot = attacker.GetSpellSlot(args.SData.Name);
if (slot != EloBuddy.SpellSlot.Unknown)
{
if (slot == attacker.GetSpellSlot("SummonerDot") && args.Target != null
&& args.Target.NetworkId == Player.NetworkId)
{
instantDamage.Add(
EloBuddy.Game.Time + 2,
(float)attacker.GetSummonerSpellDamage(Player, LeagueSharp.Common.Damage.SummonerSpell.Ignite));
}
else if (slot.HasFlag(EloBuddy.SpellSlot.Q | EloBuddy.SpellSlot.W | EloBuddy.SpellSlot.E | EloBuddy.SpellSlot.R)
&& ((args.Target != null && args.Target.NetworkId == Player.NetworkId)
|| args.End.LSDistance(Player.ServerPosition) < Math.Pow(args.SData.LineWidth, 2)))
{
instantDamage.Add(EloBuddy.Game.Time + 2, (float)attacker.LSGetSpellDamage(Player, slot));
}
}
}
}
}
if (sender.IsMe)
{
if (args.SData.Name.Equals("EkkoE", StringComparison.InvariantCultureIgnoreCase))
{
LeagueSharp.Common.Utility.DelayAction.Add(250, EloBuddy.SDK.Orbwalker.ResetAutoAttack);
}
}
}