• Visit Rebornbuddy
  • Crusader - FallingSword

    Discussion in 'Requests & Discussion' started by SuperSamwise, Sep 7, 2015.

    1. SuperSamwise

      SuperSamwise New Member

      Joined:
      Sep 9, 2014
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      Hey, I'm looking if there is a way to modify the falling sword routine to only be cast while its 4pc Seeker of Light set buff is not active.

      There's 2 possible ways i could see doing this. Either having a timer from when its cast to 8 seconds and then be able to cast, or a way to track the buff you gain called "Falling Sword" and to be cast after it wears off.



      // FallingSword
      if (CanCastFallingSword())
      {
      return new TrinityPower(SNOPower.X1_Crusader_FallingSword, 16f, TargetUtil.GetBestClusterPoint(15f, 65f, false));
      }

      This is its current parameters, what would i add to set either of those conditions.
       
    2. asylion

      asylion New Member

      Joined:
      Sep 12, 2015
      Messages:
      23
      Likes Received:
      0
      Trophy Points:
      0
      You're looking at the wrong function, you have to modify this:
      Code:
      private static bool CanCastFallingSword()
              {
                  return CanCast(SNOPower.X1_Crusader_FallingSword) && (CurrentTarget.IsEliteRareUnique || TargetUtil.ClusterExists(15f, 65f, CrusaderSettings.FallingSwordAoECount)) && Player.PrimaryResource >= 25 * (1-Player.ResourceCostReductionPct);
              }
       

    Share This Page