From 8debba9ff10adece88dd75c88325bccb68658a54 Mon Sep 17 00:00:00 2001 From: Xuc Pan Date: Sat, 11 May 2024 20:57:12 +0800 Subject: [PATCH] fix: :bug: cannot die twice --- logic/GameClass/GameObj/Ship.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/GameClass/GameObj/Ship.cs b/logic/GameClass/GameObj/Ship.cs index 8f0aa20b..a9818643 100755 --- a/logic/GameClass/GameObj/Ship.cs +++ b/logic/GameClass/GameObj/Ship.cs @@ -346,7 +346,7 @@ public long SetShipState(RunningStateType running, ShipStateType value = ShipSta return ChangeShipState(running, value, gameObj); else return -1; case ShipStateType.Deceased: - if (value == ShipStateType.Null || value == ShipStateType.Deceased) + if (value == ShipStateType.Null) return ChangeShipState(running, value, gameObj); else return -1; default: