mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 17:25:27 +00:00
fix(destroyable): resurrect only a dead player that isn't already resurrecting
RequestResurrect resurrected whoever sent it, so a living player could reset their health and imagination, and repeated requests stacked respawns. The client's destroyable resurrects only when smashed and not resurrecting (LWODestroyableComponent::SendMessage 0x00d29e40); live, all 17 requests in the captures came after the player's Die and before its Resurrect. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -471,6 +471,9 @@ public:
|
||||
*/
|
||||
static void Resurrect(Entity& entity);
|
||||
|
||||
// Whether a resurrection has started and not finished (the client's isResurrecting)
|
||||
bool GetIsResurrecting() const { return m_IsResurrecting; }
|
||||
|
||||
/**
|
||||
* Push or Pop a layer of status immunity to this entity
|
||||
*/
|
||||
@@ -634,6 +637,9 @@ private:
|
||||
*/
|
||||
bool m_IsDead;
|
||||
|
||||
// A resurrection has started (Resurrect) and its respawn animation hasn't finished
|
||||
bool m_IsResurrecting = false;
|
||||
|
||||
/**
|
||||
* Whether this entity is smashed. Unused, here for serialization
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user