当前位置: 首页>>代码示例>>C#>>正文


C# Obj_AI_BaseBuffGainEventArgs类代码示例

本文整理汇总了C#中Obj_AI_BaseBuffGainEventArgs的典型用法代码示例。如果您正苦于以下问题:C# Obj_AI_BaseBuffGainEventArgs类的具体用法?C# Obj_AI_BaseBuffGainEventArgs怎么用?C# Obj_AI_BaseBuffGainEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Obj_AI_BaseBuffGainEventArgs类属于命名空间,在下文中一共展示了Obj_AI_BaseBuffGainEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Obj_AI_Base_OnBuffGain

        private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!sender.IsMe)
                return;

            //Chat.Print(args.Buff.DisplayName + " " + args.Buff.Name, System.Drawing.Color.LawnGreen);
        }
开发者ID:SuperNova911,项目名称:Dev,代码行数:7,代码来源:Debug.cs

示例2: Obj_AI_Base_OnBuffGain

        private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!sender.IsMe || !Spells.W.IsReady())return;


            if (args.Buff.IsStunOrSuppressed && Helpers.GetCheckBoxValue(Helpers.MenuTypes.Settings, "wBuffStun"))
            {
                Spells.W.Cast();
            }

            if (args.Buff.IsSlow && Helpers.GetCheckBoxValue(Helpers.MenuTypes.Settings, "wBuffSlow"))
            {
                Spells.W.Cast();
            }

            if (args.Buff.IsBlind && Helpers.GetCheckBoxValue(Helpers.MenuTypes.Settings, "wBuffBlind"))
            {
                Spells.W.Cast();
            }

            if (args.Buff.IsSuppression && Helpers.GetCheckBoxValue(Helpers.MenuTypes.Settings, "wBuffSupression"))
            {
                Spells.W.Cast();
            }

            if (args.Buff.IsRoot && Helpers.GetCheckBoxValue(Helpers.MenuTypes.Settings, "wBuffSnare"))
            {
                Spells.W.Cast();
            }

        }
开发者ID:Casanje,项目名称:ItsMeMario,代码行数:31,代码来源:EventsManager.cs

示例3: AIHeroClientOnOnBuffGain

 private static void AIHeroClientOnOnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     if (sender.NetworkId.Equals(Player.Instance.NetworkId) && args.Buff.Name.Equals("GalioIdolOfDurand", StringComparison.CurrentCultureIgnoreCase))
     {
         Debug.WriteChat("Disabling Orbwalker while ulting");
         Orbwalker.DisableAttacking = true;
         Orbwalker.DisableMovement = true;
     }
 }
开发者ID:tswierkot,项目名称:EloBuddy,代码行数:9,代码来源:Events.cs

示例4: OnBuffGain

 public static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs buff)
 {
     if(sender.IsMe)
         Chat.Print("Buff Gained: " + buff.Buff.Name);
     //if (sender.IsAlly)
     //Chat.Print("Ally Buff Gained: " + buff.Buff.Name);
     //if (sender.IsEnemy)
         //Chat.Print("Enemy Buff Gained: " + buff.Buff.Name);
 }
开发者ID:Sicryption,项目名称:EloBuddy-Addons,代码行数:9,代码来源:Program.cs

示例5: Player_OnBuffGain

 private static void Player_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     if (!sender.IsMe) return;
     if (sender.IsMe && args.Buff.Name == "RekSaiW")
     {
         burrowed = true;
         Orbwalker.DisableAttacking = true;
     }
 }
开发者ID:lolscripts,项目名称:Ninja,代码行数:9,代码来源:Events.cs

示例6: Obj_AI_Base_OnBuffGain

 private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     if (sender.IsMe)
     {
         if (args.Buff.Name == "poppypassiveshield")
         {
             Lib.Passive = null;
         }
     }
 }
开发者ID:alvothefirst,项目名称:EloBuddy,代码行数:10,代码来源:Program.cs

示例7: OnBuffGain

 private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     if (args.Buff.Name.ToLower() == "katarinarsound" || args.Buff.Name.ToLower() == "katarinar" ||
         _isChannelingImportantSpell)
     {
         Orbwalker.DisableMovement = true;
         Orbwalker.DisableAttacking = true;
         _isUlting = true;
     }
 }
开发者ID:newchild,项目名称:OKTRAIO,代码行数:10,代码来源:Katarina.cs

示例8: Obj_AI_Base_OnBuffGain

 private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     if (sender.IsMe && args.Buff.DisplayName == "MissFortuneBulletSound")
     {
         Combo.Rchanneling = true;
         Orbwalker.DisableAttacking = true;
         Orbwalker.DisableMovement = true;
         Combo.RcameOut = true;
     }
 }
开发者ID:denizereer3,项目名称:EloBuddy,代码行数:10,代码来源:Program.cs

示例9: ObjAiBaseOnBuffGain

 private static void ObjAiBaseOnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     // Cast Challenging Smite in Ult
     if (SettingsModes.Combo.UseSmite && sender.IsEnemy && sender is AIHeroClient && SpellManager.HasChallengingSmite() && args.Buff.Name.Equals("suppression") &&
         args.Buff.SourceName.Equals("Warwick") && SettingsModes.Combo.UseSmite &&
         Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
     {
         SpellManager.Smite.Cast(sender);
         Debug.WriteChat("Casting Smite in combo with ult.");
     }
 }
开发者ID:tramyeu,项目名称:EloBuddy,代码行数:11,代码来源:Events.cs

示例10: OnBuffAdd

 /// <summary>
 ///     Fired when a buff is added.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="Obj_AI_BaseBuffAddEventArgs" /> instance containing the event data.</param>
 public static void OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     if (sender.IsMe &&
         Vars.W.IsReady() &&
         Vars.getCheckBoxItem(Vars.WMenu, "antigrab"))
     {
         if (args.Buff.Name.Equals("ThreshQ") ||
             args.Buff.Name.Equals("rocketgrab2"))
         {
             Vars.W.Cast(GameObjects.Player.ServerPosition.LSExtend(GameObjects.Player.ServerPosition, -Vars.W.Range));
         }
     }
 }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:18,代码来源:Tristana.cs

示例11: OnBuffGain

        public static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs buff)
        {
            if(sender.IsMe)
                Chat.Print("Buff Gained: " + buff.Buff.Name);
            //if (sender.IsAlly)
            //Chat.Print("Ally Buff Gained: " + buff.Buff.Name);
            //if (sender.IsEnemy)
            {
                //Chat.Print("Enemy Buff Gained: " + buff.Buff.Name);
                //Console.WriteLine("Stacks = " + sender.GetBuffCount("velkozresearchstack"));
            }
                

        }
开发者ID:CounterFX,项目名称:EloBuddy-Addons,代码行数:14,代码来源:Program.cs

示例12: Obj_AI_Base_OnBuffAdd

 static void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     foreach (var ally in Activator.Allies())
     {
         if (sender.LSIsValidTarget(1000) && !sender.IsZombie && sender.NetworkId == ally.Player.NetworkId)
         {
             if (args.Buff.Name == "rengarralertsound")
             {
                 ally.HitTypes.Add(HitType.Stealth);
                 LeagueSharp.Common.Utility.DelayAction.Add(100 + _random.Next(200, 450), () => ally.HitTypes.Remove(HitType.Stealth));
             }
         }
     }
 }
开发者ID:yashine59fr,项目名称:PortAIO-1,代码行数:14,代码来源:Stealth.cs

示例13: Obj_AI_Base_OnBuffGain

 private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     if (args.Buff.Caster.IsMe)
     {
         if (!sender.IsMe)
         {
             if (args.Buff.Name.ToLower().Contains("blindmonkrkick"))
             {
                 //Chat.Print("Delay: " + (Game.Time - LastCastTime));
                 Target = sender;
                 BuffEndTime = args.Buff.EndTime;
                 StartPos = new Vector3(sender.Position.X, sender.Position.Y, sender.Position.Z);
             }
         }
     }
 }
开发者ID:ReSrReCTion,项目名称:elobuddy,代码行数:16,代码来源:_R.cs

示例14: Obj_AI_Base_OnBuffGain

        static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (_Player.IsDead || args.Buff.Name != "rocketgrab2") return;
            AIHeroClient target = sender as AIHeroClient;
            if (target == null || !target.IsEnemy) return;
            var pullHim = config["pull" + target.ChampionName];
            if (pullHim == null) return;
            if (!pullHim.Cast<CheckBox>().CurrentValue 
                || target.Distance(_Player) > 2450 
                || Blitz.Distance(_Player) > R.Range 
                || Blitz.Distance(_Player) <= config["minblitzdist"].Cast<Slider>().CurrentValue
                || !R.IsReady()) return;

            Utils.Debug("DistanceToBlitz: " + Blitz.Distance(_Player)+"; MinDistance: "+config["minblitzdist"].Cast<Slider>().CurrentValue);
            Core.DelayAction(() => Player.CastSpell(SpellSlot.R), 1);
            
        }
开发者ID:AristoLOL,项目名称:EloBuddy-1,代码行数:17,代码来源:Program.cs

示例15: Obj_AI_Base_OnBuffGain

        private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base target, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!BalistaPossible || !Config.BalistaMenu.IsChecked("balista.use")) return;

            if (args.Buff.DisplayName == "RocketGrab" && target.IsEnemy && Spells.R.IsReady())
            {
                var hero = target as AIHeroClient;
                if (hero == null
                    || !Config.BalistaMenu.IsChecked("balista." + hero.ChampionName)
                    || (Config.BalistaMenu.IsChecked("balista.comboOnly") && !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)))
                {
                    return;
                }

                if (hero.IsValidTarget()
                    && Player.Instance.Distance(Soulbound) >= Config.BalistaMenu.GetValue("balista.distance")
                    && Spells.R.IsInRange(Soulbound))
                {
                    Spells.R.Cast();
                }
            }
        }
开发者ID:Monstertje,项目名称:EloBuddy,代码行数:22,代码来源:Kalista.cs


注:本文中的Obj_AI_BaseBuffGainEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。