From 36bcf113a37f8e632c2c85904bb5376e2c96e4df Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 28 十一月 2025 15:45:58 +0800
Subject: [PATCH] 125 战斗 闪避播放闪避音效
---
Main/System/Battle/BattleConst.cs | 6 ++++++
Main/System/Battle/BattleObject/BattleObject.cs | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/BattleConst.cs b/Main/System/Battle/BattleConst.cs
index 253ef47..088ffa2 100644
--- a/Main/System/Battle/BattleConst.cs
+++ b/Main/System/Battle/BattleConst.cs
@@ -237,4 +237,10 @@
public const int RebornEffectID = 20000; // 澶嶆椿鐗规晥ID
#endregion
+
+ #region 闊虫晥ID
+
+ public const int DodgeSoundID = 5999999; // 闂伩闊虫晥ID
+
+ #endregion
}
\ No newline at end of file
diff --git a/Main/System/Battle/BattleObject/BattleObject.cs b/Main/System/Battle/BattleObject/BattleObject.cs
index 9a493dd..984cfea 100644
--- a/Main/System/Battle/BattleObject/BattleObject.cs
+++ b/Main/System/Battle/BattleObject/BattleObject.cs
@@ -410,6 +410,9 @@
motionBase.ShowIllusionShadow(false);
};
+
+ battleField.soundManager.PlayEffectSound(BattleConst.DodgeSoundID);
+
battleField.battleTweenMgr.OnPlayTween(tween);
}
--
Gitblit v1.8.0