Exemplo n.º 1
0
        public static bool IsBuffOnMe(int buffID, AuraCheck auras)
        {
            if (auras == AuraCheck.ActiveAuras)
            {
                return Me.ActiveAuras.Any(aura => aura.Value.SpellId == buffID);
            }

            return Me.Auras.Any(aura => aura.Value.SpellId == buffID);
        }
Exemplo n.º 2
0
        public static bool IsBuffOnMe(List<int> buffID, AuraCheck auras)
        {
            if (auras == AuraCheck.ActiveAuras)
            {
                foreach (KeyValuePair<string, WoWAura> aura in Me.ActiveAuras)
                {
                    foreach (int buffid in buffID)
                    {
                        if (aura.Value.SpellId == buffid) return true;
                    }
                }

                return false;

            }

            foreach (KeyValuePair<string, WoWAura> aura in Me.Auras)
            {
                foreach (int buffid in buffID)
                {
                    if (aura.Value.SpellId == buffid) return true;
                }
            }

            return false;
        }