Exemplo n.º 1
0
        public float GetExecutePercentage()
        {
            string executeName = Options.GetActiveRotation().Execute;

            if (executeName == null || executeName == "" || executeName.Equals("Drain Soul"))
            {
                return(0f);
            }

            Spell execute = GetSpell(executeName);

            if (!execute.IsCastable())
            {
                return(0f);
            }

            if (execute is SoulFire)
            {
                return(Options.ThirtyFive);
            }
            else
            {
                return(Options.TwentyFive);
            }
        }
Exemplo n.º 2
0
 private void SetupSpells(bool execute)
 {
     Priorities = new List <Spell>();
     foreach (string spellName in CalcOpts.GetActiveRotation().GetPrioritiesForCalcs(Talents, execute))
     {
         Spell spell = GetSpell(spellName);
         if (spell.IsCastable() && (!execute || spell.IsCastDuringExecute()))
         {
             Priorities.Add(spell);
             if (!CastSpells.ContainsKey(spellName))
             {
                 CastSpells.Add(spellName, spell);
             }
         }
     }
 }