• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 求助, 巫医移动的时候,不会冷却时使用 灵魂收割.使得防御下降很多.

    Discussion in 'Demonbuddy 援助区' started by x2121, Mar 2, 2016.

    1. x2121

      x2121 New Member

      Joined:
      Nov 2, 2015
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      1
      进入战斗打怪的时候,一冷却就会自动使用. 请问要修改什么才会在移动的时候一冷却就使用.
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      移动的时候也会使用的,只是有条件触发
      你可以将
      Code:
                          if (CanCast(SNOPower.Witchdoctor_SoulHarvest) &&
                              (TargetUtil.AnyElitesInRange(16) || TargetUtil.AnyMobsInRange(16, 2) || TargetUtil.IsEliteTargetInRange(16f)))
      
      改成
      Code:
      if (CanCast(SNOPower.Witchdoctor_SoulHarvest))
      
      这样就是无条件,一冷却就用
       
      Last edited: Mar 3, 2016
    3. x2121

      x2121 New Member

      Joined:
      Nov 2, 2015
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      1
      能说明下,下面的那些参数是什么意思吗?

      (TargetUtil.AnyElitesInRange(16) || TargetUtil.AnyMobsInRange(16, 2) || TargetUtil.IsEliteTargetInRange(16f)))

      谢谢!


      另外我修改以后,运行出错了.




      Compiler Error: C:\2015-07\456\Plugins\Trinity\Combat\Abilities\WitchDoctorCombat.cs(101,64) : error CS1026: ) expected
       
      Last edited: Mar 3, 2016
    4. jiaruey

      jiaruey New Member

      Joined:
      Jan 31, 2016
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      0
      少一個括號
      後面要補一個才行
      if (CanCast(SNOPower.Witchdoctor_SoulHarvest))
       

    Share This Page