本文整理汇总了C#中Obj_AI_Base.IsMinion方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.IsMinion方法的具体用法?C# Obj_AI_Base.IsMinion怎么用?C# Obj_AI_Base.IsMinion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.IsMinion方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CastHextechGunBlade
public bool CastHextechGunBlade(Obj_AI_Base target)
{
if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion()) return false;
var Hextech = ItemUtil.GetItem(ItemId.Hextech_Gunblade, 700);
if (Hextech.IsOwned() && Hextech.IsReady() && Hextech.IsInRange(target) && Hextech.Cast(target)) return true;
return false;
}
示例2: EDamage
public static float EDamage(Obj_AI_Base target)
{
float damage = Program.Champion.CalculateDamageOnUnit(target, E.DamageType,
(35 + (15 * E.Level)) + (target.MaxHealth * (0.055f + (0.005f * E.Level))) + (0.75f * Program.Champion.FlatMagicDamageMod), true, true);
float damageCap = 335 + (15 * E.Level);
if (target.IsMinion() && damage > damageCap)
return damageCap;
return damage;
}
示例3: CastBilgeBtrk
public bool CastBilgeBtrk(Obj_AI_Base target)
{
if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion()) return false;
var bilgewaterBtrk = ItemUtil.GetItem(ItemId.Bilgewater_Cutlass, 550);
if (bilgewaterBtrk.IsOwned() && bilgewaterBtrk.IsReady() && bilgewaterBtrk.IsInRange(target) && bilgewaterBtrk.Cast(target)) return true;
bilgewaterBtrk = ItemUtil.GetItem(ItemId.Blade_of_the_Ruined_King, 550);
if (bilgewaterBtrk.IsOwned() && bilgewaterBtrk.IsReady() && bilgewaterBtrk.IsInRange(target) && bilgewaterBtrk.Cast(target)) return true;
return false;
}
示例4: CastSmite
public bool CastSmite(Obj_AI_Base target)
{
if (target == null || !target.IsValidTarget() || target.IsStructure()) return false;
var summoner = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Smite);
if (summoner != null && summoner.IsReady() && summoner.IsInRange(target))
{
if (target.IsMinion())
{
if (summoner.Cast(target)) return true;
}
else if ((summoner.Name.Contains("gank") || summoner.Name.Contains("duel")) && summoner.Cast(target)) return true;
}
return false;
}
示例5: CastFaceOfTheMountain
public bool CastFaceOfTheMountain(Obj_AI_Base ally)
{
if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;
var fotmountain = ItemUtil.GetItem(ItemId.Face_of_the_Mountain, 600);
if (fotmountain.IsOwned() && fotmountain.IsReady() && fotmountain.IsInRange(ally) && fotmountain.Cast(ally)) return true;
return false;
}
示例6: CastSolari
public bool CastSolari(Obj_AI_Base ally)
{
if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;
var solari = ItemUtil.GetItem(ItemId.Locket_of_the_Iron_Solari, 600);
if (solari.IsOwned() && solari.IsReady() && solari.IsInRange(ally) && solari.Cast(ally)) return true;
return false;
}
示例7: CastMikael
public bool CastMikael(Obj_AI_Base ally)
{
if (ally == null || !ally.IsValidTarget() || ally.IsStructure() || ally.IsMinion()) return false;
var mikael = ItemUtil.GetItem(ItemId.Mikaels_Crucible, 600);
if (mikael.IsOwned() && mikael.IsReady() && mikael.IsInRange(ally) && mikael.Cast(ally)) return true;
return false;
}
示例8: EDamage
public static double EDamage(Obj_AI_Base target, float dmg)
{
return Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical, (float)( !target.IsMinion() ? (new double[] { 80, 110, 140, 170, 200 }[Player.Instance.Spellbook.GetSpell(SpellSlot.E).Level - 1]) : 0 + (dmg)));
}
示例9: Obj_AI_Base_OnBasicAttack
private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
{
if (sender.IsAlly || !DamageEngine["TrackDamage"].Cast<CheckBox>().CurrentValue || !DamageEngine["ConsiderAttacks"].Cast<CheckBox>().CurrentValue || sender.IsMinion() && !DamageEngine["ConsiderMinions"].Cast<CheckBox>().CurrentValue) return;
if (Damages.ContainsKey(args.Target.NetworkId))
{
var target = (Obj_AI_Base) args.Target;
Damages[args.Target.NetworkId].AddDamage(args.SData.Name, sender.GetAutoAttackDamage(target),
(target.IsMelee ? sender.AttackDelay : target.Distance(sender)/args.SData.MissileSpeed)*1000);
}
}
示例10: Obj_AI_Base_OnBasicAttack
private static void Obj_AI_Base_OnBasicAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
{
if (sender.IsAlly || !DamageEngine["TrackDamage"].Cast<CheckBox>().CurrentValue || !DamageEngine["ConsiderAttacks"].Cast<CheckBox>().CurrentValue || (sender.IsMinion() && !DamageEngine["ConsiderMinions"].Cast<CheckBox>().CurrentValue)) return;
if (args.Target.IsMe)
{
TakeAA = true;
Core.DelayAction(() => TakeAA = false, 80);
}
}