| | |
| | | #endif |
| | | |
| | | // 先调用目标受伤 |
| | | var recordAc = target.Hurt(hurtParam, parentRecordAction); |
| | | DeathRecordAction recordAc = target.Hurt(hurtParam, parentRecordAction); |
| | | |
| | | if (null != recordAc) |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | public virtual bool IsFinishedForJudge() |
| | | public virtual bool IsActionCompleted() |
| | | { |
| | | if (!isPlay) return false; |
| | | |
| | |
| | | if (!skillEffect.IsFinished()) return false; |
| | | } |
| | | |
| | | if (currentWaitingSkill.Count > 0) |
| | | if (moveFinished) |
| | | { |
| | | if (currentWaitingSkill.Any(s => !s.IsFinished())) |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | if (parentRecordAction != null && parentRecordAction.GetInnerRecordPlayer().IsPlaying()) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | if (isFinished && moveFinished) |
| | | { |
| | | if (packList.Count > 0) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | // 如果技能有动画(SkillMotionName不为空),需要等待动画播放完成 |
| | | if (skillConfig != null && !string.IsNullOrEmpty(skillConfig.SkillMotionName)) |
| | | { |
| | | if (!isMotionCompleted) |
| | | { |
| | | BattleDebug.LogError($"SkillBase.IsFinishedForJudge: 技能 {skillConfig.SkillID} 等待动画播放完成"); |
| | | BattleDebug.LogError($"SkillBase.IsActionCompleted: 技能 {skillConfig.SkillID} 等待动画播放完成"); |
| | | return false; |
| | | } |
| | | } |