本文整理汇总了C#中AIHeroClient.GetBuff方法的典型用法代码示例。如果您正苦于以下问题:C# AIHeroClient.GetBuff方法的具体用法?C# AIHeroClient.GetBuff怎么用?C# AIHeroClient.GetBuff使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AIHeroClient
的用法示例。
在下文中一共展示了AIHeroClient.GetBuff方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetRecallTime
private static int GetRecallTime(AIHeroClient hero)
{
var buffHerald = hero.GetBuff("exaltedwithminibaronnashor");
var buffNashor = hero.GetBuff("exaltedwithbaronnashor");
if (buffHerald != null || buffNashor != null)
{
return 4000;
}
return 8000;
}
示例2: Execute
public override void Execute(AIHeroClient target)
{
if (
_brandQWE.Any(
spell =>
spell.Instance.State == SpellState.Ready ||
spell.Instance.CooldownExpires > Game.Time &&
spell.Instance.CooldownExpires - Game.Time < spell.Instance.Cooldown/2f) ||
_w.Instance.Cooldown - (_w.Instance.CooldownExpires - Game.Time) < 1)
{
if ((!target.HasBuff("brandablaze") || target.GetBuff("brandablaze").EndTime - Game.Time < Delay) &&
!Provider.IsMarked(target) &&
!(ObjectManager.Player.GetSpellDamage(target, Instance.Slot) +
ObjectManager.Player.GetAutoAttackDamage(target, true) > target.Health))
return;
}
Cast(target);
}
示例3: CanR
private static bool CanR(AIHeroClient target)
{
var buff = target.GetBuff("BlindMonkDragonsRage");
return buff != null && buff.EndTime - Game.Time <= 0.75 * (buff.EndTime - buff.StartTime);
}
示例4: ShouldBeDead
public override bool ShouldBeDead(AIHeroClient target, float additionalSpellDamage = 0f)
{
var passive = target.GetBuff("brandablaze");
return base.ShouldBeDead(target, passive != null ? GetRemainingPassiveDamage(target, passive) : 0f);
}