Ejemplo n.º 1
0
 private bool NeedsCleanse(WoWPlayer p)
 {
     foreach (WoWAura a in p.ActiveAuras.Values)
     {
         if (a.IsHarmful && Me.ManaPercent > 50)
         {
             WoWDispelType t = a.Spell.DispelType;
             if (t == WoWDispelType.Curse || t == WoWDispelType.Magic || t == WoWDispelType.Poison)
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
 /*
  * private bool NeedsCleanse(WoWPlayer p)
  * {
  *  int dispelme;
  *  bool touchme;
  *  dispelme = 0;
  *  touchme = true;
  *  foreach (WoWAura a in p.ActiveAuras.Values)
  *  {
  *      if ((a.IsHarmful) && (!p.ActiveAuras.ContainsKey("Blackout")) && (!p.ActiveAuras.ContainsKey("Toxic Torment")) && (!p.ActiveAuras.ContainsKey("Frostburn Formula")) && (!p.ActiveAuras.ContainsKey("Burning Blood")) && (!p.ActiveAuras.ContainsKey("Unstable Affliction")))
  *      {
  *          WoWDispelType t = a.Spell.DispelType;
  *          if (t == WoWDispelType.Disease || t == WoWDispelType.Magic || t == WoWDispelType.Poison)
  *          {
  *              dispelme += 1;
  *              // return true;
  *          }
  *      }
  *      else if ((p.ActiveAuras.ContainsKey("Blackout")) || (p.ActiveAuras.ContainsKey("Toxic Torment")) || (p.ActiveAuras.ContainsKey("Frostburn Formula")) | (p.ActiveAuras.ContainsKey("Burning Blood")) || (p.ActiveAuras.ContainsKey("Unstable Affliction")))
  *      {
  *          touchme = false;
  *      }
  *  }
  *  if ((dispelme > 0) && (touchme)) { return true; } else { return false; }
  * }
  */
 private bool NeedsCleanse(WoWPlayer p)
 {
     //int dispelme;
     //dispelme = 0;
     if ((p.ActiveAuras.ContainsKey("Blackout")) || (p.ActiveAuras.ContainsKey("Toxic Torment")) || (p.ActiveAuras.ContainsKey("Frostburn Formula")) || (p.ActiveAuras.ContainsKey("Burning Blood")) || (p.ActiveAuras.ContainsKey("Unstable Affliction")))
     {
         return(false);
     }
     foreach (WoWAura a in p.Debuffs.Values)
     {
         WoWDispelType t = a.Spell.DispelType;
         if (t == WoWDispelType.Disease || t == WoWDispelType.Magic || t == WoWDispelType.Poison)
         {
             //dispelme += 1;
             return(true);
         }
     }
     //if (dispelme > 0) { return true; } else { return false; }
     return(false);
 }
Ejemplo n.º 3
0
 /*
  * private bool NeedHoFNow(WoWPlayer p)
  * {
  *  foreach (WoWAura a in p.ActiveAuras.Values)
  *  {
  *      if ((a.IsHarmful) &&
  *          (!p.ActiveAuras.ContainsKey("Unstable Affliction")) &&
  *          ((p.ActiveAuras.ContainsKey("Entangling Roots")) ||
  *          (p.ActiveAuras.ContainsKey("Frost Nova")) ||
  *          (p.ActiveAuras.ContainsKey("Chains of Ice"))
  *      ))
  *      {
  *          WoWDispelType t = a.Spell.DispelType;
  *          if (t == WoWDispelType.Disease || t == WoWDispelType.Magic || t == WoWDispelType.Poison)
  *          {
  *              return true;
  *          }
  *      }
  *  }
  *  return false;
  * }
  */
 /*
  * private bool PVPNeedsUrgentCleanse(WoWPlayer p)
  * {
  *  foreach (WoWAura a in p.ActiveAuras.Values)
  *  {
  *      if (
  *          (!p.ActiveAuras.ContainsKey("Unstable Affliction")) &&
  *          ((p.ActiveAuras.ContainsKey("Fear")) ||
  *          (p.ActiveAuras.ContainsKey("Polymorph")) ||
  *          (p.ActiveAuras.ContainsKey("Freezing Trap")) ||
  *          (p.ActiveAuras.ContainsKey("Wyvern Sting")) ||
  *          (p.ActiveAuras.ContainsKey("Seduction")) ||
  *          (p.ActiveAuras.ContainsKey("Mind Control")) ||
  *          //(p.ActiveAuras.ContainsKey("Entangling Roots")) ||
  *          //(p.ActiveAuras.ContainsKey("Frost Nova")) ||
  *          //(p.ActiveAuras.ContainsKey("Chains of Ice")) ||
  *          (p.ActiveAuras.ContainsKey("Repentance")) ||
  *          (p.ActiveAuras.ContainsKey("Hex")) ||
  *          (p.ActiveAuras.ContainsKey("Psychic Scream")) ||
  *          (p.ActiveAuras.ContainsKey("Hammer of Justice")) ||
  *          (p.ActiveAuras.ContainsKey("Intimidating Shout")) ||
  *          (p.ActiveAuras.ContainsKey("Howl of Terror"))
  *      )){
  *          WoWDispelType t = a.Spell.DispelType;
  *          slog(Color.Orange, "There is a urgent buff to dispell!");
  *          if (t == WoWDispelType.Disease || t == WoWDispelType.Magic || t == WoWDispelType.Poison)
  *          {
  * //                slog(Color.Orange, "And is dispellable");
  *              return true;
  *          }
  *          else
  *          {
  * //              slog(Color.Orange, "But is not dispellable");
  *          }
  *      }
  *  }
  *  return false;
  * }*/
 private bool PVPNeedsUrgentCleanse(WoWPlayer p)
 {
     if (p.ActiveAuras.ContainsKey("Unstable Affliction"))
     {
         return(false);
     }
     foreach (WoWAura a in p.Debuffs.Values)
     {
         if (a.Name == "Fear" || a.Name == "Polymorph" || a.Name == "Freezing Trap" || a.Name == "Wyvern Sting" || a.Name == "Seduction" || a.Name == "Mind Control" || a.Name == "Repetance" || a.Name == "Psychic Scream" ||
             a.Name == "Hammer of Justice" || a.Name == "Intimidating Shout" || a.Name == "Howl of Terror")
         {
             WoWDispelType t = a.Spell.DispelType;
             //slog(Color.Orange, "There is a urgent buff to dispell!");
             if (t == WoWDispelType.Disease || t == WoWDispelType.Magic || t == WoWDispelType.Poison)
             {
                 //                slog(Color.Orange, "And is dispellable");
                 return(true);
             }
             //return true;
         }
     }
     return(false);
 }
Ejemplo n.º 4
0
 private bool PVENeedsUrgentCleanse(WoWPlayer p)
 {
     foreach (WoWAura a in p.Debuffs.Values)//p.ActiveAuras.Values)
     {
         /*if (
          *  (p.ActiveAuras.ContainsKey("Static Cling")) ||
          *  (p.ActiveAuras.ContainsKey("Flame Shock")) ||
          *  (p.ActiveAuras.ContainsKey("Static Discharge")) ||
          *  (p.ActiveAuras.ContainsKey("Consuming Darkness")) ||
          *  (p.ActiveAuras.ContainsKey("Lash of Anguish")) ||
          *  (p.ActiveAuras.ContainsKey("Static Disruption")) ||
          *  (p.ActiveAuras.ContainsKey("Accelerated Corruption")) ||
          *  (p.ActiveAuras.ContainsKey("Mangle")) ||
          *  (p.ActiveAuras.ContainsKey("Corruption")) ||
          *  (p.ActiveAuras.ContainsKey("Fear")
          *  )
          * )*/
         if (a.Name == "Fear" || a.Name == "Static Cling" || a.Name == "Flame Shock" || a.Name == "Static Discharge" || a.Name == "Consuming Darkness" || a.Name == "Lash of Anguish" || a.Name == "Static Disruption" ||
             a.Name == "Accelerated Corruption")
         {
             //slog(Color.Orange, "There is a urgent buff to dispell!");
             WoWDispelType t = a.Spell.DispelType;
             if (t == WoWDispelType.Disease || t == WoWDispelType.Magic || t == WoWDispelType.Poison)
             {
                 //    slog(Color.Orange, "And is dispellable {0} harmfull {1} name {2} applyauratype {3}, flags {4} category {5} dispelltype {6}", t.ToString(), a.IsHarmful.ToString(), a.Name, a.ApplyAuraType.ToString(), a.Flags.ToString(), a.Spell.Category.ToString(), a.Spell.DispelType.ToString());
                 return(true);
             }
             else
             {
                 //    slog(Color.Orange, "But is not dispellable {0} harmfull {1} name {2} applyauratype {3}, flags {4} category {5} dispelltype {6}", t.ToString(), a.IsHarmful.ToString(), a.Name, a.ApplyAuraType.ToString(), a.Flags.ToString(), a.Spell.Category.ToString(), a.Spell.DispelType.ToString());
             }
             //return true;
         }
     }
     return(false);
 }