• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Need to remove polymorph from the default singular combat routine

    Discussion in 'Honorbuddy Forum' started by ifritone, May 17, 2014.

    1. ifritone

      ifritone New Member

      Joined:
      Mar 9, 2014
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      0
      Hi, I am using the singular combat routine for mage and when there is more than one enemy aggroed it seems to have a tendency to cast polymorph, while I understand why it casts polymorph I deem it not necessary and would like if someone could help me remove the code from the singular combat routine to allow it to resort to aoe tactics instead , thanks
       
    2. Claiver

      Claiver New Member

      Joined:
      Jul 6, 2012
      Messages:
      15
      Likes Received:
      0
      Trophy Points:
      0
      Edit: see my next post
       
      Last edited: Jun 9, 2014
    3. Giwin

      Giwin Well-Known Member Buddy Store Developer

      Joined:
      Dec 3, 2011
      Messages:
      3,431
      Likes Received:
      49
      Trophy Points:
      48
      I think this tactic is used mostly for lower level, it can be a life saver.. is there nothing in the Singular Class Config which will allow you to disable Polymorph?
       
    4. Claiver

      Claiver New Member

      Joined:
      Jul 6, 2012
      Messages:
      15
      Likes Received:
      0
      Trophy Points:
      0
      Editing the Singular Mage code

      What you can do is:

      1. Go to your Honorbuddy/Routines/Singular/ClassSpecific/Mage folder.
      2. Open the file Common.cs with a text-editor
      3. Search for private static bool IsViableForPolymorph(WoWUnit unit)
      4. Right under the opening { tag, write: return false;
      5. It will now look like this:
        Code:
                private static bool IsViableForPolymorph(WoWUnit unit)
                {
                    return false; // we have added this
                	
                    if (StyxWoW.Me.CurrentTargetGuid == unit.Guid)
                        return false;
        
                    if (!unit.Combat)
                        return false;
        
                    if (unit.CreatureType != WoWCreatureType.Beast && unit.CreatureType != WoWCreatureType.Humanoid)
                        return false;
        
                    if (unit.IsCrowdControlled())
                        return false;
        
                    if (!unit.IsTargetingMeOrPet && !unit.IsTargetingMyPartyMember)
                        return false;
        
                    if (StyxWoW.Me.RaidMembers.Any(m => m.CurrentTargetGuid == unit.Guid && m.IsAlive))
                        return false;
        
                    return true;
                }
      6. Save your file, restart your Honorbuddy and your mage should now no longer cast Polymorph on adds.

      Hope that helps!
       
    5. namednoob

      namednoob Community Developer

      Joined:
      Apr 25, 2014
      Messages:
      1,097
      Likes Received:
      25
      Trophy Points:
      38
      I guess the only way right now would be to disable all the Interrupt options at the "Enemy control" on the "General" tab but not really a good way to achieve it.

      Interrupt Targets to Off and probably Purge Targets as well butt even so I don't know if it would stop casting polymorph.

      EDIT:

      Using Clavier's idea with a little twist:

      On the file "Routines\Singular\Settings\MageSettings.cs" after this line:

      Code:
              public bool UseSlowFall { get; set; }
      Add the follow code:

      Code:
              [Setting]
              [DefaultValue(true)]
              [Category("Common")]
              [DisplayName("Use Polymorph")]
              [Description("True: will cast polymorph when needed")]
              public bool UsePolymorph { get; set; }
      Then on the file "Routines\Singular\ClassSpecific\Mage\Common.cs" after this line:

      Code:
              private static bool IsViableForPolymorph(WoWUnit unit)
              {
      Add the follow code:

      Code:
              private static bool IsViableForPolymorph(WoWUnit unit)
              {
                  if (!MageSettings.UsePolymorph)
                      return false;
      And now you have this on the graphic menu:

      [​IMG]

      Keep in mind this is an untested change, use at your own risk :)
       
      Last edited: Jun 10, 2014
    6. ifritone

      ifritone New Member

      Joined:
      Mar 9, 2014
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      0
      Hi guys, thanks for the replies , I have input the code for the polymorph option , I will be testing this method later and I will come back with the results later , thanks again
       

    Share This Page