本文整理汇总了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);
}
示例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();
}
}
示例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;
}
}
示例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);
}
示例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;
}
}
示例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;
}
}
}
示例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;
}
}
示例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;
}
}
示例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.");
}
}
示例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));
}
}
}
示例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"));
}
}
示例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));
}
}
}
}
示例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);
}
}
}
}
示例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);
}
示例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();
}
}
}