Merge pull request #39810 from AnturK/flashwithoutuser

Fixes flash logging for emp/remote activation.
This commit is contained in:
Jordan Brown
2018-08-21 10:49:25 -04:00
committed by GitHub
+4 -1
View File
@@ -104,7 +104,10 @@
/obj/item/assembly/flash/proc/flash_carbon(mob/living/carbon/M, mob/user, power = 15, targeted = TRUE, generic_message = FALSE)
if(!istype(M))
return
log_combat(user, M, "[targeted? "flashed(targeted)" : "flashed(AOE)"]", src)
if(user)
log_combat(user, M, "[targeted? "flashed(targeted)" : "flashed(AOE)"]", src)
else //caused by emp/remote signal
M.log_message("was [targeted? "flashed(targeted)" : "flashed(AOE)"]",LOG_ATTACK)
if(generic_message && M != user)
to_chat(M, "<span class='disarm'>[src] emits a blinding light!</span>")
if(targeted)