private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainedEventArgs args) { if (args.Buff.DisplayName == "orianaredactshield") { all = args.Buff.Target; checkball = true; } }
public static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainedEventArgs args) { if (args.Buff.Name.ToLower() == "malzaharrsound" || args.Buff.Name.ToLower() == "malzaharr") { Orbwalker.Move = false; Orbwalker.Attack = false; _isUlting = true; } }
private void OnAddBuff(Obj_AI_Base sender, Obj_AI_BaseBuffGainedEventArgs args) { if (!args.Buff.Target.IsMe) { return; } if (_menu.GetValue <bool>(_antiCCMenu, "cleanse") && _spellManager.Cleanse != null && _spellManager.Cleanse.IsReady() && (_menu.GetValue <bool>(_antiCCMenu, "stun") && args.Buff.Type == BuffType.Stun || _menu.GetValue <bool>(_antiCCMenu, "silence") && args.Buff.Type == BuffType.Silence || _menu.GetValue <bool>(_antiCCMenu, "taunt") && args.Buff.Type == BuffType.Taunt || _menu.GetValue <bool>(_antiCCMenu, "polymorph") && args.Buff.Type == BuffType.Polymorph || _menu.GetValue <bool>(_antiCCMenu, "snare") && args.Buff.Type == BuffType.Snare || _menu.GetValue <bool>(_antiCCMenu, "sleep") && args.Buff.Type == BuffType.Sleep || _menu.GetValue <bool>(_antiCCMenu, "fear") && args.Buff.Type == BuffType.Fear || _menu.GetValue <bool>(_antiCCMenu, "charm") && args.Buff.Type == BuffType.Charm || _menu.GetValue <bool>(_antiCCMenu, "blind") && args.Buff.Type == BuffType.Blind || _menu.GetValue <bool>(_antiCCMenu, "disarm") && args.Buff.Type == BuffType.Disarm)) { _spellManager.Cleanse.Cast(ObjectManager.Player); return; } if (!_items.GetQssState()) { return; } if (_menu.GetValue <bool>(_antiCCMenu, "stun") && args.Buff.Type == BuffType.Stun || _menu.GetValue <bool>(_antiCCMenu, "silence") && args.Buff.Type == BuffType.Silence || _menu.GetValue <bool>(_antiCCMenu, "taunt") && args.Buff.Type == BuffType.Taunt || _menu.GetValue <bool>(_antiCCMenu, "polymorph") && args.Buff.Type == BuffType.Polymorph || _menu.GetValue <bool>(_antiCCMenu, "snare") && args.Buff.Type == BuffType.Snare || _menu.GetValue <bool>(_antiCCMenu, "sleep") && args.Buff.Type == BuffType.Sleep || _menu.GetValue <bool>(_antiCCMenu, "fear") && args.Buff.Type == BuffType.Fear || _menu.GetValue <bool>(_antiCCMenu, "charm") && args.Buff.Type == BuffType.Charm || _menu.GetValue <bool>(_antiCCMenu, "suppression") && args.Buff.Type == BuffType.Suppression || _menu.GetValue <bool>(_antiCCMenu, "blind") && args.Buff.Type == BuffType.Blind || _menu.GetValue <bool>(_antiCCMenu, "disarm") && args.Buff.Type == BuffType.Disarm) { CastQSS(); } }
static void OnBuffGained(Obj_AI_Base unit, Obj_AI_BaseBuffGainedEventArgs buff) { if (unit.IsMe) { switch (buff.Buff.DisplayName) { case "XerathArcanopulseChargeUp": QData.Active = true; QData.LastCastTime = Game.Time; break; case "XerathLocusOfPower2": RData.Active = true; RData.Count = R.Data.Level + 2; RData.Delay[0] = Game.GameTimeTickCount; break; default: break; } } }