private static void OnBuffAd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (args.Buff.Name == "BlindMonkQOne") { GoodQ++; } }
private static void Player_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsMe && args.Buff.Name == "VarusQ") { _move = true; } }
public override void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (args.Buff.Name.ToLower() == "kindredecharge" && !sender.IsMe) { KindredECharge = sender as AIHeroClient; } }
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(); } }
private static void OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs Args) { if (sender.IsEnemy && sender.IsValid && Args.Buff.Name == "BlindMonkQOne") { qHit = sender; } }
public static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { { if (sender == null || args.Buff == null || !sender.IsMe) { return; } var type = args.Buff.Type; if (!DeBuffsList.Contains(type)) { return; } if (!ItemMenu[type.ToString()].Cast <CheckBox>().CurrentValue) { return; } if (ItemMenu["Qssmode"].Cast <ComboBox>().CurrentValue == 0) { DoQss(); return; } if (ItemMenu["Qssmode"].Cast <ComboBox>().CurrentValue == 1 && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { DoQss(); } } }
private void BuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (Value.Use("misc.q") && _q.IsReady()) { if (sender.IsMe) { return; } if (Player.Instance.IsInRange(sender, _q.Range) && Value.Get("misc.q.mana") >= Player.Instance.ManaPercent) { if (Value.Use("misc.q.stun") && sender.IsStunned) { _q.Cast(sender); } if (Value.Use("misc.q.snare") && sender.IsRooted) { _q.Cast(sender); } if (Value.Use("misc.q.charm") && sender.IsCharmed) { _q.Cast(sender); } if (Value.Use("misc.q.taunt") && sender.IsTaunted) { _q.Cast(sender); } if (Value.Use("misc.q.fear") && sender.IsFeared) { _q.Cast(sender); } } } if (Value.Use("misc.w") && _w.IsReady()) { if (Player.Instance.IsInRange(sender, _w.Range) && Value.Get("misc.w.mana") >= Player.Instance.ManaPercent) { if (Value.Use("misc.w.stun") && sender.IsStunned) { _w.Cast(sender); } if (Value.Use("misc.w.snare") && sender.IsRooted) { _w.Cast(sender); } if (Value.Use("misc.w.charm") && sender.IsCharmed) { _w.Cast(sender); } if (Value.Use("misc.w.taunt") && sender.IsTaunted) { _w.Cast(sender); } if (Value.Use("misc.w.fear") && sender.IsFeared) { _w.Cast(sender); } } } }
private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (!sender.IsMe) { return; } switch (args.Buff.DisplayName) { case "YasuoQ3W": Variables.haveQ3 = true; break; case "YasuoDashScalar": Variables.cDash = 1; break; case "yasuoeqcombosoundmiss": case "YasuoEQComboSoundHit": Core.DelayAction( () => Player.IssueOrder( GameObjectOrder.AttackTo, (Vector3)Variables._Player.ServerPosition.Extend(Game.CursorPos, Variables._Player.BoundingRadius)), 90); break; } }
private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.Name == "Barrel" && sender.Team == Gangplank.Team && args.Buff.Name == "gangplankebarreldecaysound") { GetBarrelAtPosition(sender.Position).timeSinceLastDecay = Game.Time; } }
private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsMe && args.Buff.Name == "katarinarsound") { whenToCancelR = Utils.TickCount + 400; } }
private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsEnemy) { return; } var delay = CleansersMenu.GetSliderValue("delayCleanse"); if (PlayerHasCleanse && Player.Instance.HasCC() && CleansersMenu.GetCheckBoxValue("check" + "cleanse")) { Core.DelayAction(() => Cleanse.Cast(), delay); } var itemCleanse = Cleansers.CleansersItems.FirstOrDefault( i => i.IsReady() && i.IsOwned() && CleansersMenu.GetCheckBoxValue("check" + (int)i.Id)); if (itemCleanse != null) { if (itemCleanse.Id == ItemId.Mikaels_Crucible) { var ally = EntityManager.Heroes.Allies.FirstOrDefault(a => a.HasCC()); if (ally != null) { Core.DelayAction(() => itemCleanse.Cast(ally), delay); } } if (Player.Instance.HasCC()) { Core.DelayAction(() => itemCleanse.Cast(), delay); } } }
private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (args.Buff.Caster.IsMe && BuffNames.Contains(args.Buff.DisplayName)) { MyBall = sender; } }
public override void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsMe && args.Buff.Name.ToLower() == "kogmawbioarcanebarrage") { bioArcaneActive = true; } }
/// <summary> /// The OnBuffAdd event. /// </summary> /// <param name="sender"> /// The sender /// </param> /// <param name="args"> /// The event data /// </param> private void OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { try { if (args.Buff.Name.Equals(Misc.DevouredCastBuffName)) { var hero = sender as AIHeroClient; if (hero != null) { Misc.LastDevouredType = hero.IsAlly ? DevourType.Ally : DevourType.Enemy; return; } var minion = sender as Obj_AI_Minion; if (minion != null) { Misc.LastDevouredType = DevourType.Minion; } } } catch (Exception e) { Logging.AddEntry(LoggingEntryType.Error, "@SpellManager.cs: OnBuffAdd: {0}", e); throw; } }
public static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsEnemy) { if (sender.HasBuffOfType(BuffType.Stun) || sender.HasBuffOfType(BuffType.Snare) || sender.HasBuffOfType(BuffType.Knockup) || sender.HasBuffOfType(BuffType.Charm) || sender.HasBuffOfType(BuffType.Fear) || sender.HasBuffOfType(BuffType.Taunt) || sender.HasBuffOfType(BuffType.Suppression) || sender.HasBuffOfType(BuffType.Disarm) || sender.HasBuffOfType(BuffType.Flee) || sender.HasBuffOfType(BuffType.Polymorph)) { if (sender.IsValidTarget(Spells.Q.Range)) { QTarget = sender as AIHeroClient; Spells.Q.Cast(sender); } if (sender.IsValidTarget(Spells.R.Range) && Extension.HasR) { Spells.R.Cast(sender); } } if (args.Buff.Name == "Chilled" && Config.MiscMenu.Checked("Eauto") && Spells.E.IsReady() && sender.IsValidTarget(Spells.E.Range)) { Spells.E.Cast(sender); } } }
private void BuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (Value.Use("misc.e") && _e.IsReady()) { if (sender == null || !sender.HasBuff("tristanaecharge")) { return; } if (Player.Instance.ManaPercent >= Value.Get("misc.e.mana")) { if (Value.Use("misc.e.stun") && sender.IsStunned) { _e.Cast(sender); } if (Value.Use("misc.e.snare") && sender.IsRooted) { _e.Cast(sender); } if (Value.Use("misc.e.charm") && sender.IsCharmed) { _e.Cast(sender); } if (Value.Use("misc.e.taunt") && sender.IsTaunted) { _e.Cast(sender); } if (Value.Use("misc.e.fear") && sender.IsFeared) { _e.Cast(sender); } } } }
private static void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsEnemy && args.Buff.Name == "ThreshQ") { Marked = sender; } }
public override void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (E.IsReady()) { BuffInstance aBuff = (from fBuffs in sender.Buffs.Where( s => sender.Team != ObjectManager.Player.Team && sender.Distance(ObjectManager.Player.Position) < W.Range) from b in new[] { "teleport_", /* Teleport */ "pantheon_grandskyfall_jump", /* Pantheon */ "crowstorm", /* FiddleScitck */ "zhonya", "katarinar", /* Katarita */ "MissFortuneBulletTime", /* MissFortune */ "gate", /* Twisted Fate */ "chronorevive" /* Zilean */ } where args.Buff.Name.ToLower().Contains(b) select fBuffs).FirstOrDefault(); if (aBuff != null && aBuff.StartTime + CommonUtils.GetRandomDelay(1000, 1500) <= Game.Time) { W.Cast(sender.Position); } } }
internal static void OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { try { if (!sender.IsMe) { return; } if (args.Buff.DisplayName.Equals("BlindMonkFlurry", StringComparison.InvariantCultureIgnoreCase)) { LeeSin.PassiveStacks = 2; } if (args.Buff.DisplayName.Equals("BlindMonkQTwoDash", StringComparison.InvariantCultureIgnoreCase)) { LeeSin.isInQ2 = true; } } catch (Exception e) { Console.WriteLine("@PassiveManager.cs: Can not {0} -", e); throw; } }
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(); } } }
private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (MenuHandler.DebugMenu.GetCheckboxValue("Show Buff Gains")) { Console.WriteLine(args.Buff.Name); } }
private void BuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender == null || sender.IsValidTarget(_q.Range)) { return; } if (Value.Get("misc.q.mana") >= Player.Instance.ManaPercent) { if (Value.Use("misc.q.stun") && sender.IsStunned) { _q.Cast(sender); } if (Value.Use("misc.q.snare") && sender.IsRooted) { _q.Cast(sender); } if (Value.Use("misc.q.charm") && sender.IsCharmed) { _q.Cast(sender); } if (Value.Use("misc.q.taunt") && sender.IsTaunted) { _q.Cast(sender); } if (Value.Use("misc.q.fear") && sender.IsFeared) { _q.Cast(sender); } } }
static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsMe && args.Buff.Name == "vaynetumblebonus") { lastaa = 0; } }
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); }
private static void BuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsMe && !_w.IsInRange(sender)) { return; } if (Value.Use("misc.w") && Player.Instance.ManaPercent >= Value.Get("misc.w.mana")) { if (Value.Use("misc.w.charm") && sender.IsCharmed) { _w.Cast(sender); } if (Value.Use("misc.w.knockup")) { _w.Cast(sender); } if (Value.Use("misc.w.stun") && sender.IsStunned) { _w.Cast(sender); } if (Value.Use("misc.w.snare") && sender.IsRooted) { _w.Cast(sender); } if (Value.Use("misc.w.suppression") && sender.IsSuppressCallForHelp) { _w.Cast(sender); } if (Value.Use("misc.w.taunt") && sender.IsTaunted) { _w.Cast(sender); } } }
private static void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { var senderHero = sender as AIHeroClient; if (senderHero == null) { return; } if (_oathsworn == null && args.Buff.Name == "kalistacoopstrikeally" && args.Buff.Caster.IsMe) { _oathsworn = senderHero; } if (_oathsworn == null) { return; } if (Settings.Balista && args.Buff.Name == "rocketgrab2" && args.Buff.Caster.NetworkId == _oathsworn.NetworkId && !sender.IsDead) { SpellManager.R.Cast(); //Logging.Write()(LogLevel.Info, "Trying Balista"); } }
private static void OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs Args) { if (sender.IsMe && Args.Buff.Name == "blindmonkpassive_cosmetic") { PassiveStack = 2; } }
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); }
public override void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { rqTumbleBuffEndOfTime = Program.misc["Misc.R.DontAttack"].Cast <CheckBox>().CurrentValue&& sender.IsMe && args.Buff.Name.ToLower() == "vaynetumblefade" ? args.Buff.EndTime : 0; }
private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { //Lee Sin Q Target set. if (args.Buff.Name == "BlindMonkQOne") { Tuple <AIHeroClient, Obj_AI_Base> newLeeSinQTarget = null; for (int i = 0; i < ParticleDatabase.LeeSinQTargets.Count; i++) { if (ParticleDatabase.LeeSinQTargets[i].Item1 == args.Buff.Caster) { newLeeSinQTarget = new Tuple <AIHeroClient, Obj_AI_Base>((AIHeroClient)args.Buff.Caster, sender); ParticleDatabase.LeeSinQTargets.Remove(ParticleDatabase.LeeSinQTargets[i]); break; } } if (newLeeSinQTarget != null) { ParticleDatabase.LeeSinQTargets.Add(newLeeSinQTarget); } else { Console.WriteLine("Lee Sin Q Target does not exist!"); } } // I believe I added to for Lee Sin. Unfortunetly, I'm not quite sure what it entirely does, or if it is needed. foreach (SpellInfo info in SpellDatabase.activeSpells.Where(a => a.BuffName != "")) { if (args.Buff.Name == info.BuffName && args.Buff.Caster.Name == info.caster.Name) { info.target = sender; } } }
private void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (!sender.IsMe) { Program.debug(args.Buff.Name + " " + args.Buff.Type + " " + args.Buff.SourceName); } }
public override void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { rqTumbleBuffEndOfTime = GetValue <bool>("Misc.R.DontAttack") && sender.IsMe && args.Buff.Name.ToLower() == "vaynetumblefade" ? args.Buff.EndTime : 0; }
private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (!loaded) { return; } if (QssMenu.GetCheckbox("enable")) { if (sender.IsMe) { var debuff = (QssMenu.GetCheckbox("charm") && (args.Buff.Type == BuffType.Charm || Player.Instance.HasBuffOfType(BuffType.Charm))) || (QssMenu.GetCheckbox("tunt") && (args.Buff.Type == BuffType.Taunt || Player.Instance.HasBuffOfType(BuffType.Taunt))) || (QssMenu.GetCheckbox("stun") && (args.Buff.Type == BuffType.Stun || Player.Instance.HasBuffOfType(BuffType.Stun))) || (QssMenu.GetCheckbox("fear") && (args.Buff.Type == BuffType.Fear || Player.Instance.HasBuffOfType(BuffType.Fear))) || (QssMenu.GetCheckbox("silence") && (args.Buff.Type == BuffType.Silence || Player.Instance.HasBuffOfType(BuffType.Silence))) || (QssMenu.GetCheckbox("snare") && (args.Buff.Type == BuffType.Snare || Player.Instance.HasBuffOfType(BuffType.Snare))) || (QssMenu.GetCheckbox("supperss") && (args.Buff.Type == BuffType.Suppression || Player.Instance.HasBuffOfType(BuffType.Suppression))) || (QssMenu.GetCheckbox("sleep") && (args.Buff.Type == BuffType.Sleep || Player.Instance.HasBuffOfType(BuffType.Sleep))) || (QssMenu.GetCheckbox("poly") && (args.Buff.Type == BuffType.Polymorph || Player.Instance.HasBuffOfType(BuffType.Polymorph))) || (QssMenu.GetCheckbox("frenzy") && (args.Buff.Type == BuffType.Frenzy || Player.Instance.HasBuffOfType(BuffType.Frenzy))) || (QssMenu.GetCheckbox("disarm") && (args.Buff.Type == BuffType.Disarm || Player.Instance.HasBuffOfType(BuffType.Disarm))) || (QssMenu.GetCheckbox("nearsight") && (args.Buff.Type == BuffType.NearSight || Player.Instance.HasBuffOfType(BuffType.NearSight))) || (QssMenu.GetCheckbox("knockback") && (args.Buff.Type == BuffType.Knockback || Player.Instance.HasBuffOfType(BuffType.Knockback))) || (QssMenu.GetCheckbox("knockup") && (args.Buff.Type == BuffType.Knockup || Player.Instance.HasBuffOfType(BuffType.Knockup))) || (QssMenu.GetCheckbox("slow") && (args.Buff.Type == BuffType.Slow || Player.Instance.HasBuffOfType(BuffType.Slow))) || (QssMenu.GetCheckbox("poison") && (args.Buff.Type == BuffType.Poison || Player.Instance.HasBuffOfType(BuffType.Poison))) || (QssMenu.GetCheckbox("blind") && (args.Buff.Type == BuffType.Blind || Player.Instance.HasBuffOfType(BuffType.Blind))) || (QssMenu.GetCheckbox("zed") && args.Buff.Name == "zedrtargetmark") || (QssMenu.GetCheckbox("vlad") && args.Buff.Name == "vladimirhemoplaguedebuff") || (QssMenu.GetCheckbox("liss") && args.Buff.Name == "LissandraREnemy2") || (QssMenu.GetCheckbox("fizz") && args.Buff.Name == "fizzmarinerdoombomb") || (QssMenu.GetCheckbox("naut") && args.Buff.Name == "nautilusgrandlinetarget") || (QssMenu.GetCheckbox("fiora") && args.Buff.Name == "fiorarmark"); var enemys = QssMenu.GetSlider("Rene"); var hp = QssMenu.GetSlider("hp"); var enemysrange = QssMenu.GetSlider("enemydetect"); var countenemies = Helpers.CountEnemies(enemysrange); var delay = QssMenu.GetSlider("human"); if (debuff && Player.Instance.HealthPercent <= hp && countenemies >= enemys) { Core.DelayAction(QssCast, delay); } } } }
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); }
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; } }
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; } }
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; } }
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; } } }
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; } }
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."); } }
/// <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)); } } }
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")); } }
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)); } } } }
private static void Player_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (!sender.IsMe) return; if (sender.IsMe && args.Buff.Name == "ZacE") { ChannelingE = true; Orbwalker.DisableAttacking = true; Orbwalker.DisableMovement = true; } if (sender.IsMe && args.Buff.Name == "ZacR") { Orbwalker.DisableAttacking = true; } }
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); } } } }
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); }
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(); } } }
private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { var senderHero = sender as AIHeroClient; var casterHero = args.Buff.Caster as AIHeroClient; if (senderHero != null && senderHero.IsEnemy) { if (casterHero != null && casterHero.IsAlly && EntityManager.Heroes.Allies.Any(h => h.ChampionName.Equals(args.Buff.SourceName))) { if (args.Buff.SourceName.Equals("Blitzcrank") && args.Buff.DisplayName.Equals(BlitzcrankBuffName)) { if (BlitzcrankSenders.ContainsKey(senderHero)) { BlitzcrankSenders.Remove(senderHero); } BlitzcrankSenders.Add(senderHero, args.Buff); Core.DelayAction(delegate { if (BlitzcrankSenders.ContainsKey(senderHero)) { BlitzcrankSenders.Remove(senderHero); } }, (int)(1000 * (args.Buff.EndTime - args.Buff.StartTime + 0.1f))); } else if (args.Buff.SourceName.Equals("Thresh") && args.Buff.DisplayName.Equals(ThreshBuffName)) { if (ThreshSenders.ContainsKey(senderHero)) { ThreshSenders.Remove(senderHero); } ThreshSenders.Add(senderHero, new Tuple<BuffInstance, Vector3>(args.Buff, senderHero.ServerPosition)); Core.DelayAction(delegate { if (ThreshSenders.ContainsKey(senderHero)) { ThreshSenders.Remove(senderHero); } }, (int)(1000 * (args.Buff.EndTime - args.Buff.StartTime + 0.1f))); } } } }
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(); } }
static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs buff) { if(sender.IsMe) Chat.Print("Buff Gained: " + buff.Buff.Name); }
public static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { _objaibase.BuffGain(sender, args); }
private static void AIHeroClientOnOnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { }
private void BuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender == null || sender.IsValidTarget(_q.Range)) return; if (Value.Get("misc.q.mana") >= Player.Instance.ManaPercent) { if (Value.Use("misc.q.stun") && sender.IsStunned) { _q.Cast(sender); } if (Value.Use("misc.q.snare") && sender.IsRooted) { _q.Cast(sender); } if (Value.Use("misc.q.charm") && sender.IsCharmed) { _q.Cast(sender); } if (Value.Use("misc.q.taunt") && sender.IsTaunted) { _q.Cast(sender); } if (Value.Use("misc.q.fear") && sender.IsFeared) { _q.Cast(sender); } } }
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; } } } }
private static void OnApplyBuff(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (sender.IsMe) { var buff = args.Buff; if (buff.Name.ToLower() == "ahritumble") { _R["EndTime"] = Game.Time + buff.EndTime - buff.StartTime; } } }
static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { }
private static void ObjAiBaseOnOnBuffGainBurst(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (!sender.IsEnemy || ((sender as AIHeroClient) == null) || args.Buff.Caster != _Player) return; Utils.Debug(args.Buff.Name); }
private static void Obj_AI_Base_OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { if (!sender.IsMe) return; if (args.Buff.Type == BuffType.Taunt && Manager.MenuManager.QssTaunt) { DoQSS(); } if (args.Buff.Type == BuffType.Stun && Manager.MenuManager.QssStun) { DoQSS(); } if (args.Buff.Type == BuffType.Snare && Manager.MenuManager.QssSnare) { DoQSS(); } if (args.Buff.Type == BuffType.Polymorph && Manager.MenuManager.QssPolymorph) { DoQSS(); } if (args.Buff.Type == BuffType.Blind && Manager.MenuManager.QssBlind) { DoQSS(); } if (args.Buff.Type == BuffType.Flee && Manager.MenuManager.QssFear) { DoQSS(); } if (args.Buff.Type == BuffType.Charm && Manager.MenuManager.QssCharm) { DoQSS(); } if (args.Buff.Type == BuffType.Suppression && Manager.MenuManager.QssSupression) { DoQSS(); } if (args.Buff.Type == BuffType.Silence && Manager.MenuManager.QssSilence) { DoQSS(); } if (args.Buff.Name == "zedulttargetmark") { UltQSS(); } if (args.Buff.Name == "VladimirHemoplague") { UltQSS(); } if (args.Buff.Name == "FizzMarinerDoom") { UltQSS(); } if (args.Buff.Name == "MordekaiserChildrenOfTheGrave") { UltQSS(); } if (args.Buff.Name == "PoppyDiplomaticImmunity") { UltQSS(); } }
static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs buff) { if (sender.IsMe && buff.Buff.Name == "yasuoq3w") Q = new Spell.Skillshot(SpellSlot.Q, 1000, SkillShotType.Linear); }
private static void Obj_AI_Base_OnBuffAdd(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args) { ChampionClass.Obj_AI_Base_OnBuffAdd(sender, args); }