What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Need to remove polymorph from the default singular combat routine

ifritone

New Member
Joined
Mar 9, 2014
Messages
26
Reaction score
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
 
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?
 
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!
 
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:

Pd65IpS.jpg


Keep in mind this is an untested change, use at your own risk :)
 
Last edited:
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
 
Back
Top