Merge pull request #4652 from VOREStation/aro-givefix

Fixes #4643
This commit is contained in:
Neerti
2018-01-29 00:31:52 -05:00
committed by GitHub
2 changed files with 17 additions and 1 deletions
+16
View File
@@ -248,3 +248,19 @@ Proc for attack log creation, because really why not
if (progbar)
qdel(progbar)
/atom/proc/living_mobs(var/range = world.view)
var/list/viewers = oviewers(src,range)
var/list/living = list()
for(var/mob/living/L in viewers)
living += L
return living
/atom/proc/human_mobs(var/range = world.view)
var/list/viewers = oviewers(src,range)
var/list/humans = list()
for(var/mob/living/carbon/human/H in viewers)
humans += H
return humans