From b75d5dc51fee3c5ea7b1fbf64230dc748b914088 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 23 十二月 2025 10:33:01 +0800
Subject: [PATCH] 125 战斗 部分伤害技能造成伤害但是没有配置前中后摇的时候 强制给一个基础的前中后摇
---
Main/System/Battle/Motion/MotionBase.cs | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/Motion/MotionBase.cs b/Main/System/Battle/Motion/MotionBase.cs
index 4f60ec5..673ddbd 100644
--- a/Main/System/Battle/Motion/MotionBase.cs
+++ b/Main/System/Battle/Motion/MotionBase.cs
@@ -179,10 +179,24 @@
bool isPangdeSkill = 1003020 == skillConfig.SkillID;
int loopCount = skillConfig.LoopCount;
+ // 鍓嶆憞
+ int startupFrames = skillConfig.StartupFrames;
+ // 涓憞
int[] activeFrames = skillConfig.ActiveFrames ?? new int[0];
int frameCount = activeFrames.Length;
+ // 鍚庢憞
float recoveryFrame = skillConfig.RecoveryFrames;
+ // 濡傛灉鍓嶄腑鍚庢憞娌℃湁閰嶇疆 閭d箞榛樿缁欎竴涓�1 2 3鐨勫抚鏁�
+ if (startupFrames <= 0 && frameCount == 0 && recoveryFrame <= 0f)
+ {
+ startupFrames = 1;
+ activeFrames = new int[] { 2 };
+ frameCount = 1;
+ recoveryFrame = 3f;
+ }
+
+
// 杞ㄩ亾鍒嗛厤绛栫暐锛氫富鎶�鑳界敤 track 0锛屽瓙鎶�鑳戒粠杞ㄩ亾姹犲垎閰�
int trackIndex = 0;
if (isSubSkill)
--
Gitblit v1.8.0