mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 21:24:14 +00:00
0726449b6e
## Description: Don't become traitor when betraying inactive player This PR makes the following changes - Do not mark the attacking player as a traitor, if they attack/betray an ally who is disconnected from the game - Do not send the attacking player the betrayal message (traitor debuff applied message), if they attack/betray an ally who is disconnected from the game - Add test case for traitor debuff being applied if the attacking player attacks an ally who is still connected to the game - Add test case for traitor debuff NOT being applied if the attacking player attacks an ally who is disconnected from the game I also tested this manually with nuking an allied player who is connected and nuking an allied player who is disconnected. The logic worked as expected. This PR was made in regards to the following issue: #1599 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced - [x] I have read and accepted the CLA agreement (only required once). ## Please put your Discord username so you can be contacted if a bug or regression is found: slyty