少年修仙传客户端代码仓库
client_linchunjie
2018-09-17 21a37c61e717908a25a017ce63d7d21b94e5f17a
Fight/Actor/AI/HeroAI_Base.cs
@@ -34,7 +34,7 @@
        if (priorSkillId >= 0)
        {
            if (CanCast(priorSkillId))
            if (CanCast(priorSkillId, true))
            {
                _skill = _hero.SkillMgr.Get(priorSkillId);
                if (_skill != null)
@@ -148,7 +148,7 @@
        return true;
    }
    protected bool CanCast(int skillID)
    protected bool CanCast(int skillID, bool userClick = false)
    {
        if (!CanCastActiveUse(skillID))
        {
@@ -159,9 +159,9 @@
        {
            GA_Hero _hero = PlayerDatas.Instance.hero;
            if (!skillModel.AutoUseXp()
            if ((!skillModel.AutoUseXp()
             || GeneralConfig.Instance.NoXpDungeons.Contains(PlayerDatas.Instance.baseData.MapID)
             || (_hero.SelectTarget != null && _hero.SelectTarget is GActorPlayerBase))
             || (_hero.SelectTarget != null && _hero.SelectTarget is GActorPlayerBase)) && !userClick)
            {
                return false;
            }