本文整理汇总了C#中Obj_AI_Base.IsRendKillable方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.IsRendKillable方法的具体用法?C# Obj_AI_Base.IsRendKillable怎么用?C# Obj_AI_Base.IsRendKillable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.IsRendKillable方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnUnkillableMinion
public static void OnUnkillableMinion(Obj_AI_Base unit, Orbwalker.UnkillableMinionArgs args)
{
if (!Spells.E.IsReady()
|| Player.HasBuff("summonerexhaust")
|| (Player.Instance.Mana - 40) < 40)
{
return;
}
if (Config.MiscMenu.IsChecked("misc.unkillableE") && unit.IsRendKillable())
{
if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)
|| Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
{
Spells.E.Cast();
}
}
}
示例2: OnUnkillableMinion
private void OnUnkillableMinion(Obj_AI_Base target, Orbwalker.UnkillableMinionArgs args)
{
if (Settings.SecureMinionKillsE && E.IsReady() && target.IsRendKillable())
{
// Cast since it's killable with E
SpellManager.E.Cast();
}
}
示例3: DrawText
private static void DrawText(Obj_AI_Base unit)
{
var damage = _damageToUnit(unit);
if (damage <= 0) return;
//Draw damage percentage
if (Config.DrawMenu.IsChecked("draw.percentage")
&& (unit is AIHeroClient
|| (unit.Name.Contains("Baron") || unit.Name.Contains("Dragon") || unit.Name.Contains("Herald") || unit.Name.Contains("Blue") || unit.Name.Contains("Red"))))
{
var textOffsetX = 40;
var textOffsetY = 4;
if (!(unit is AIHeroClient))
{
textOffsetX = 20;
textOffsetY = 8;
}
var percent = Math.Floor((damage / unit.GetTotalHealth()) * 100);
if (percent >= 100 && !unit.IsRendKillable())
{
Drawing.DrawText(unit.HPBarPosition.X + _xOffset + _width + textOffsetX, unit.HPBarPosition.Y + _yOffset - textOffsetY,
Color.Red, "Can't kill!", 20);
}
else
{
Drawing.DrawText(unit.HPBarPosition.X + _xOffset + _width + textOffsetX, unit.HPBarPosition.Y + _yOffset - textOffsetY,
Color.White, unit.IsRendKillable() ? "Killable!" : percent + "%", 20);
}
}
}