本文整理汇总了C#中Obj_AI_Hero.HasSpellShield方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Hero.HasSpellShield方法的具体用法?C# Obj_AI_Hero.HasSpellShield怎么用?C# Obj_AI_Hero.HasSpellShield使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Hero
的用法示例。
在下文中一共展示了Obj_AI_Hero.HasSpellShield方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Execute
public override void Execute(Obj_AI_Hero target)
{
if ((Provider.IsMarked(target) || target.IsPoisoned() && target.GetPoisonedTime() > Delay || (IsKillable(target) && (!OnlyKillNonPIn1V1 || ObjectManager.Player.CountEnemiesInRange(1500) == 1))) && !target.HasSpellShield() && !target.IsBehindWindWall())
{
Cast(target);
}
}
示例2: Execute
public override void Execute(Obj_AI_Hero target)
{
var distance = target.Distance(ObjectManager.Player); //Todo: make him use fireminions even in range, just for showoff and potential AOE. Check if hes on fire too though
if (distance < 950 && distance > 650 && UseMinions)
{
var fireMinion = MinionManager.GetMinions(650, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.None).Where(minion => minion.HasBuff("brandablaze") && minion.Distance(target) < 300).MinOrDefault(minion => minion.Distance(target));
if (fireMinion != null)
{
if (Cast(fireMinion) == CastStates.SuccessfullyCasted && !target.HasSpellShield())
Provider.SetMarked(target);
}
}
if (distance < 650)
{
if (Cast(target) == CastStates.SuccessfullyCasted && !target.HasSpellShield())
Provider.SetMarked(target);
}
}