Skip to content

Commit

Permalink
fix: 🐛 cannot die twice
Browse files Browse the repository at this point in the history
  • Loading branch information
panxuc committed May 11, 2024
1 parent 006f9f0 commit 8debba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/GameClass/GameObj/Ship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8debba9

Please sign in to comment.