• Visit Honorbuddy
  • Visit Rebornbuddy
  • Visit Demonbuddy
  • Visit Exilebuddy
  • Visit Hearthbuddy
  • Visit Pokefarmer
  • Visit Buddystore

Skill infinite time Fetish Army.

Discussion in 'Community Developer Forum' started by pahaone, Feb 19, 2017.

  1. pahaone

    pahaone New Member

    Joined:
    Feb 16, 2017
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    My Witchdoctor has the skill infinite time Fetish Army. So there is no need to constantly use this skill. I made changes in WitchDoctorBase.cs to avoid constant cast skill Fetish Army.
    Code:
            protected virtual bool ShouldFetishArmy()
            {
                if (!Skills.WitchDoctor.FetishArmy.CanCast())
                    return false;
    
                if (Skills.WitchDoctor.FetishArmy.IsBuffActive)
                    return false;
    
    [B]            [COLOR="#FF0000"]if (Player.Summons.FetishArmyCount == 6)
                    return false;[/COLOR][/B]
    
                return true;
            }  
    
    I think it is not best solution. Tell me how to make more correctly?
     
  2. Swatti

    Swatti Member

    Joined:
    Apr 18, 2014
    Messages:
    190
    Likes Received:
    1
    Trophy Points:
    18
    Hi, me n00b. Does that work and where do i put that if i want mine to also stop spamming the skill.

    I main a Zuni WD
     
  3. SunEmpire

    SunEmpire New Member

    Joined:
    Mar 30, 2017
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    your code is wrong,1. your code is only when fetish count =6 can did't cast the skill ,when the count is 5 ,or 10, it will cast when skill cooldown.
    2. you can try that Player.Summons.FetishArmyCount if it contain the belt effect fetish.
    3. it's a bad idea to change the WitchDoctorBase.cs code because other routine may be use it ,the best way is rewrite the code in your own routine , like this:

    protected override bool ShouldFetishArmy()
    {
    //your new code here
    }
     

Share This Page