Merge pull request #35239 from boy2mantwicethefam/pain-mirror-event-fix

Removes Summon Server Crash
This commit is contained in:
d3athrow
2023-10-29 04:47:50 -04:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -379,7 +379,7 @@ This function restores all organs.
damage = (damage/100)*(100-blocked)
if(!ignore_events && INVOKE_EVENT(src, /event/damaged, "kind" = damagetype, "amount" = damage))
return 0
return 0 //This event code is also in the mob/living parent which this proc mostly overrides.
switch(damagetype)
if(BRUTE)

View File

@@ -12,6 +12,8 @@
if(!damage)
return 0
var/damage_done = (damage/100)*(100-blocked)
if(!ignore_events && INVOKE_EVENT(src, /event/damaged, "kind" = damagetype, "amount" = damage))
return 0
switch(damagetype)
if(BRUTE)
adjustBruteLoss(damage_done)