本文整理匯總了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);
}