Ejemplo n.º 1
0
 public static Styx.StatType GetPrimaryStat(this WoWUnit unit)
 {
     Styx.StatType primaryStat = StatType.Strength;
     if (unit.Agility > unit.Strength)
     {
         primaryStat = StatType.Agility;
     }
     if (unit.Intellect > unit.Agility)
     {
         primaryStat = StatType.Intellect;
     }
     return(primaryStat);
 }
Ejemplo n.º 2
0
        private static WoWItem FindBestScroll()
        {
            Styx.StatType primary = Me.GetPrimaryStat();
            WoWItem       scroll  = FindFirstUsableItemBySpell(primary.ToString());

            if (scroll == null)
            {
                scroll = FindFirstUsableItemBySpell("Stamina");
            }
            if (scroll == null && primary == StatType.Intellect)
            {
                scroll = FindFirstUsableItemBySpell("Spirit");
            }
            return(scroll);
        }