本文整理汇总了C#中Obj_AI_Base.IsStructure方法的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_Base.IsStructure方法的具体用法?C# Obj_AI_Base.IsStructure怎么用?C# Obj_AI_Base.IsStructure使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Obj_AI_Base
的用法示例。
在下文中一共展示了Obj_AI_Base.IsStructure方法的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: CastIgnite
public bool CastIgnite(Obj_AI_Base target)
{
if (target == null || !target.IsValidTarget() || target.IsStructure() || target.IsMinion) return false;
var summoner = SpellsUtil.GetTargettedSpell(SpellsUtil.Summoners.Ignite);
if (summoner != null && summoner.IsReady() && summoner.IsInRange(target) && summoner.Cast(target)) return true;
return false;
}
示例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: OnTurretAttack
private static void OnTurretAttack(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
{
if (!(sender.IsStructure()) || !args.Target.IsMe)
{
return;
}
turretIsAttackingMe = true;
currentTurret = sender;
}
示例6: 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;
}
示例7: CastRanduin
public bool CastRanduin(Obj_AI_Base target = null)
{
if (target == null || !target.IsValidTarget() || target.IsStructure()) return false;
if (target != null)
{
var randuin = ItemUtil.GetItem(ItemId.Randuins_Omen, 450);//500 of range
if (randuin.IsOwned() && randuin.IsReady() && randuin.IsInRange(target) && randuin.Cast()) return true;
}
else
{
var randuin = ItemUtil.GetItem(ItemId.Randuins_Omen, 500);//500 of range
if (randuin.IsOwned() && randuin.IsReady() && randuin.Cast()) return true;
}
return false;
}
示例8: 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;
}
示例9: 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;
}
示例10: OnProcessSpellCast
private static void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
{
if (sender.IsValid<AIHeroClient>() && sender.LSIsValidTarget() && sender.Type == GameObjectType.AIHeroClient && sender.IsEnemy && sender.IsVisible && sender.IsHPBarRendered)
{
var heroSender = ObjectManager.Get<AIHeroClient>().First(x => x.NetworkId == sender.NetworkId);
if (heroSender.GetSpellSlot(args.SData.Name) == SpellSlot.Unknown && args.Target.Type == Player.Type)
{
AggroTarget = ObjectManager.GetUnitByNetworkId<AIHeroClient>((uint)args.Target.NetworkId);
incomingDamage = (float)heroSender.LSGetAutoAttackDamage(AggroTarget);
}
if (heroSender.ChampionName == "Jinx" && args.SData.Name.Contains("JinxQAttack")
&& args.Target.Type == Player.Type)
{
AggroTarget = ObjectManager.GetUnitByNetworkId<AIHeroClient>((uint)args.Target.NetworkId);
incomingDamage = (float)heroSender.LSGetAutoAttackDamage(AggroTarget);
}
}
if (sender.IsValid<Obj_AI_Turret>() && sender.IsStructure() && sender.Type == GameObjectType.obj_AI_Turret && sender.IsEnemy)
{
if (args.Target.Type == Player.Type)
{
if (sender.LSDistance(Allies().ServerPosition, true) <= 900 * 900)
{
AggroTarget = ObjectManager.GetUnitByNetworkId<AIHeroClient>((uint)args.Target.NetworkId);
incomingDamage =
(float)
sender.CalcDamage(
AggroTarget,
DamageType.Physical,
sender.BaseAttackDamage + sender.FlatPhysicalDamageMod);
}
}
}
}