Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medical - Fix respawn when letting AI take over playable units #9145

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

BaerMitUmlaut
Copy link
Member

When merged this pull request will:

  • Reset causeOfDeath and lastWakeUpCheck on respawn

Because causeOfDeath was only reset locally, letting AI take over a unit after it respawned caused the causeOfDeath on the server being the new truth, which persisted even when reslotting as that unit. This in turn caused fnc_enteredStateDeath to fail and exit early. TBH, that exitWith seems unnecessary to me, but I don't know what the original intention was. I think setDead should always be called.

@BaerMitUmlaut BaerMitUmlaut added the kind/bug-fix Release Notes: **FIXED:** label Feb 5, 2023
@PabstMirror PabstMirror added this to the 3.16.0 milestone Feb 5, 2023
@PabstMirror PabstMirror merged commit 60cc8fb into master Feb 24, 2023
@PabstMirror PabstMirror deleted the fix-respawn-with-ai branch February 24, 2023 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug-fix Release Notes: **FIXED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants