• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Obj_AI_BaseBuffGainEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: OnBuffGain

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

            var type = args.Buff.Type;
            var duration = args.Buff.EndTime - Game.Time;

            if (type == BuffType.Taunt && Taunt)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Stun && Stun)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Snare && Snare)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Polymorph && Polymorph)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Blind && Blind)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Flee && Fear)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Charm && Charm)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Suppression && Suppression)
            {
                DebuffCount++;
                if (duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (type == BuffType.Silence && Silence)
            {
                DebuffCount++;
                if(duration >= MinDuration)
                {
                    DoQSS();
                }
            }
            if (args.Buff.Name == "zedulttargetmark" && ZedUlt)
            {
                UltQSS();
            }
            if (args.Buff.Name == "VladimirHemoplague" && VladUlt)
            {
                UltQSS();
            }
            if (args.Buff.Name == "FizzMarinerDoom" && FizzUlt)
            {
                UltQSS();
            }
            if (args.Buff.Name == "MordekaiserChildrenOfTheGrave" && MordUlt)
            {
                UltQSS();
            }
            if (args.Buff.Name == "PoppyDiplomaticImmunity" && PoppyUlt)
            {
                UltQSS();
            }
        }
开发者ID:rolaaa,项目名称:EloBuddy,代码行数:100,代码来源:AutoQSS.cs


示例17: OnBuffGain

 static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs buff)
 {
     if(sender.IsMe)
         Chat.Print("Buff Gained: " + buff.Buff.Name);
 }
开发者ID:s001725,项目名称:EloBuddyAddons,代码行数:5,代码来源:Program.cs


示例18: Obj_AI_Base_OnBuffGain

 public static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     _objaibase.BuffGain(sender, args);
 }
开发者ID:nld-eb,项目名称:EloBuddy,代码行数:4,代码来源:EventManager.cs


示例19: Obj_AI_Base_OnBuffAdd

 private static void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
 {
     ChampionClass.Obj_AI_Base_OnBuffAdd(sender, args);
 }
开发者ID:CONANLXF,项目名称:AIO,代码行数:4,代码来源:Program.cs


示例20: 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("blindmonkqone"))
             {
                 Target = sender;
             }
         }
         else
         {
             if (args.Buff.Name.ToLower().Contains("blindmonkqtwodash"))
             {
                 IsDashing = true;
             }
         }
     }
 }
开发者ID:ItsMoneyboy,项目名称:EloBuddy,代码行数:20,代码来源:_Q.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Obj_AI_Hero类代码示例发布时间:2022-05-24
下一篇:
C# Obj_AI_Base类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap