Beispiel #1
0
        private static NonLethalPoisonType PoisonCheck(NonLethalPoisonType poison)
        {
            if (poison > NonLethalPoisonType.Auto && !SpellManager.HasSpell((int)poison))
            {
                poison = NonLethalPoisonType.Auto;
            }

            if (poison == NonLethalPoisonType.Auto)
            {
                if (SingularRoutine.CurrentWoWContext == WoWContext.Battlegrounds && SpellManager.HasSpell((int)NonLethalPoisonType.Paralytic))
                {
                    poison = NonLethalPoisonType.Paralytic;
                }
                else if (SpellManager.HasSpell((int)NonLethalPoisonType.Leeching))
                {
                    poison = NonLethalPoisonType.Leeching;
                }
                else if (SpellManager.HasSpell((int)NonLethalPoisonType.Crippling))
                {
                    poison = NonLethalPoisonType.Crippling;
                }
                else
                {
                    poison = NonLethalPoisonType.None;
                }
            }


            if (poison != NonLethalPoisonType.None && Me.GetAuraTimeLeft((int)poison, true) < TimeSpan.FromMinutes(RefreshAtMinutesLeft))
            {
                return(poison);
            }

            return(NonLethalPoisonType.None);
        }
Beispiel #2
0
        private static NonLethalPoisonType PoisonCheck(NonLethalPoisonType poison)
        {
            if (poison > NonLethalPoisonType.Auto && !SpellManager.HasSpell((int)poison))
                poison = NonLethalPoisonType.Auto;

            if (poison == NonLethalPoisonType.Auto)
            {
                if (SingularRoutine.CurrentWoWContext == WoWContext.Battlegrounds && SpellManager.HasSpell((int)NonLethalPoisonType.Paralytic ))
                    poison = NonLethalPoisonType.Paralytic;
                else if (SpellManager.HasSpell((int)NonLethalPoisonType.Leeching ))
                    poison = NonLethalPoisonType.Leeching;
                else if (SpellManager.HasSpell((int)NonLethalPoisonType.Crippling))
                    poison = NonLethalPoisonType.Crippling;
                else
                    poison = NonLethalPoisonType.None;
            }

            if ( poison != NonLethalPoisonType.None && Me.GetAuraTimeLeft((int)poison, true) < TimeSpan.FromMinutes(RefreshAtMinutesLeft))
                return poison;

            return NonLethalPoisonType.None;
        }