Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Fixed SCP-956 NRE
Browse files Browse the repository at this point in the history
  • Loading branch information
iopietro committed Dec 23, 2022
1 parent 1ab7087 commit 45feb46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public AnnouncingScpTerminationEventArgs(Player scp, DamageHandlerBase damageHan
Role = scp.Role;
DamageHandler = new CustomDamageHandler(scp, damageHandlerBase);
Attacker = DamageHandler.BaseIs(out CustomAttackerHandler customAttackerHandler) ? customAttackerHandler.Attacker : null;
TerminationCause = damageHandlerBase.CassieDeathAnnouncement.Announcement;
TerminationCause = damageHandlerBase is Scp956DamageHandler ? string.Empty : damageHandlerBase.CassieDeathAnnouncement.Announcement;
IsAllowed = isAllowed;
}

Expand Down

0 comments on commit 45feb46

Please sign in to comment.