Fix zombie bug (#1014)

This commit is contained in:
David Markowitz
2023-03-08 05:32:03 -08:00
committed by GitHub
parent ff0336793c
commit a532bc15d8
2 changed files with 17 additions and 7 deletions

View File

@ -1,5 +1,7 @@
#include "ActPlayerDeathTrigger.h"
#include "Entity.h"
void ActPlayerDeathTrigger::OnCollisionPhantom(Entity* self, Entity* target) {
if (!target->IsPlayer() || target->GetIsDead() || !target->GetPlayerReadyForUpdates()) return; //Don't kill already dead players or players not ready