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

Cannot Cast Phalanx at Single Target

Doowron6

New Member
Joined
May 4, 2013
Messages
67
Reaction score
0
My crusader only casts phalanx when there are 3 or more monsters in range. I tried changing some of the crusadercombat.cs coding but im not sure if this is even the correct file to be looking at. Can anyone help with changing it so the crusader can cast phalanx on single targets?
 
CrusaderCombat.cs is the right file

It should use phalanx on single targets if you're using Akkhan's set, otherwise it'll look for clusters of three enemies or more.

If you really want to change that, go here:

Code:
        private static bool CanCastPhalanx()
        {
            return CanCast(SNOPower.x1_Crusader_Phalanx3) && (TargetUtil.ClusterExists(15f, [B][B]1[/B][/B]) || TargetUtil.EliteOrTrashInRange(15f));
        }

change cluster size from 3 to 1 in line 309 or just copy and paste the code above.
 
I have full Akkhan's set and this same code in CrusaderCombat.cs . My crusader still tries to melee attack single targets. This is not happening for other people? Do you have any other suggestions?
 
Hi, i had the same issue and menaged to fix it with the following code in CrusaderCombat.cs file:

Replace:

Code:
 private static bool CanCastPhalanx()
        {
            return CanCast(SNOPower.x1_Crusader_Phalanx3) && (TargetUtil.ClusterExists(15f, 3) || TargetUtil.EliteOrTrashInRange(15f));
        }

With this code and you should be fine (there is 2 adjustement to be made, in bold):

Code:
 private static bool CanCastPhalanx()
        {
            return CanCast(SNOPower.x1_Crusader_Phalanx3) && (TargetUtil.[B][COLOR="#FF0000"]AnyMobsInRange[/COLOR][/B](15f, [B][COLOR="#FF0000"]1[/COLOR][/B]) || TargetUtil.EliteOrTrashInRange(15f));
        }


Good luck!
 
Back
Top