private static void Checks(Obj_AI_Base target, Obj_AI_Base source, BuffMngr.OnGainBuffArgs args) { if ((Config.Item("ccactive").GetValue<KeyBind>().Active || Config.Item("ccactiveT").GetValue<KeyBind>().Active) && target.IsMe && args.Duration > 0) { if ((args.Type == (int)BuffMngr.BuffTypes.BUFF_STUN || args.Type == (int)BuffMngr.BuffTypes.BUFF_TAUNT || args.Type == (int)BuffMngr.BuffTypes.BUFF_FEAR || args.Type == (int)BuffMngr.BuffTypes.BUFF_CHARM)) { Console.WriteLine(args.BuffID + " CC ACTIVET : " + Config.Item("ccactiveT").GetValue<KeyBind>().Active + " CC ACTIVE : " + Config.Item("ccactive").GetValue<KeyBind>().Active + " TARGET ME : " + target.IsMe); CleanseChecks(false, args.Duration, args.EndTime); }; if (args.Type == (int)BuffMngr.BuffTypes.BUFF_SILENCE && Config.Item("silence").GetValue<KeyBind>().Active) { CleanseChecks(false, args.Duration, args.EndTime); }; if (args.Type == (int)BuffMngr.BuffTypes.BUFF_SUPPRESS && Config.Item("supress").GetValue<KeyBind>().Active) { CleanseChecks(true, args.Duration, args.EndTime); }; if (args.Type == (int)BuffMngr.BuffTypes.BUFF_DISARM && Config.Item("disarm").GetValue<KeyBind>().Active) { CleanseChecks(false, args.Duration, args.EndTime); }; if (args.Type == (int)BuffMngr.BuffTypes.BUFF_BLIND && Config.Item("blind").GetValue<KeyBind>().Active) { CleanseChecks(false, args.Duration, args.EndTime); }; if (args.Type == (int)BuffMngr.BuffTypes.BUFF_ROOT && Config.Item("root").GetValue<KeyBind>().Active) { CleanseChecks(false, args.Duration, args.EndTime); }; //if (args.BuffID == "???" && Config.Item("exhaust").GetValue<KeyBind>().Active) //{ // CleanseChecks(false, args.Duration); //}; }; }
private static void BuffGained(Obj_AI_Base target, Obj_AI_Base source, BuffMngr.OnGainBuffArgs args) { if (target.IsMe && args.BuffID == 3334932) { tSpells.rEndTick = args.EndTime; tSpells.rStartTick = args.StartTime; tSpells.ulting = true; } else if (args.BuffID == 84848667) //mark { MarkList.Add(new QMark(target.BaseSkinName, args.EndTime)); } }
private static void BuffLost(Obj_AI_Base target, Obj_AI_Base source, BuffMngr.OnGainBuffArgs args) { if (target.IsMe && args.BuffID == 3334932) { tSpells.ulting = false; } else if (args.BuffID == 84848667) // mark { foreach (var mark in MarkList) { if (mark.unit == target.BaseSkinName) { MarkList.Remove(mark); } } } }
private static void BuffGained(Obj_AI_Base target, Obj_AI_Base source, BuffMngr.OnGainBuffArgs args) { Checks(target,source,args); }