From 149e7486241ed93c21f90b56d6e0a6553b59e466 Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Thu, 26 Jun 2025 12:37:23 +0800 Subject: [PATCH] 1 --- .../GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index c1cf2994..c3eb4188 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -329,6 +329,11 @@ namespace GameLogic // 直接扣 m_AllPush += (int)buff.addPower / 5; + if (m_AllPush <= 0) + { + m_AllPush = 0; + } + GameObject.Destroy(eGo); }); @@ -591,6 +596,11 @@ namespace GameLogic // 直接扣 m_AllPush += (int)buff.addPower; + + if (m_AllPush <= 0) + { + m_AllPush = 0; + } return; }