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

Pro Crusader assistance needed

Janet

New Member
Joined
May 9, 2014
Messages
52
Reaction score
0
Can anyone guide me on how to make Laws of Valor activate right after the cooldown is done. I have been able to change it for AC + HF under CrusaderCombat.cs, but have no idea how to do it for laws of valor (Unstoppable Force).


Any help would be appreciated.
 
PHP:
                // LawsOfValor
                // LawsOfValor2
                if (CanCast(SNOPower.X1_Crusader_LawsOfValor2) && (TargetUtil.EliteOrTrashInRange(16f) || TargetUtil.AnyMobsInRange(15f, 5)))
                {
                    return new TrinityPower(SNOPower.X1_Crusader_LawsOfValor2);
                }

This is the current code, right now its looking for anything within 15 yards, you could just change it to
PHP:
                // LawsOfValor
                // LawsOfValor2
                if (CanCast(SNOPower.X1_Crusader_LawsOfValor2))
                {
                    return new TrinityPower(SNOPower.X1_Crusader_LawsOfValor2);
                }
 
The problem that i'd be afraid of is that this will cast pretty much as you said, out of combat every time its up, even if no mobs are near. Is that what you want?
 
Nope guess we want it to activate vs thrash aswell. Not all the time. But most of the time it dosent activate vs thrash
 
I see, let me play around with it and see what I can come up with, I imagine its activating when it finds clusters of mobs but not for groups smaller than 5 atm.
 
Code:
                if (CanCast(SNOPower.X1_Crusader_LawsOfValor2) && TargetUtil.AnyMobsInRange(15f, 1)) 
                { 
                    return new TrinityPower(SNOPower.X1_Crusader_LawsOfValor2); 
                }

I use this along to cast it whenever the timeout runs out and when I am in combat. The extra condition removes the need to cast while not in combat.
 
Had to come back here and thank you. It works REALLY well. Sicne i got 52 % CDR its worth it. I can now do T6 with bounties and Rifts. This made it possible to switch to Prophet and still have enough Wrath.

Thx Again :)
 
Back
Top