diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index acc1fb8bf99..d4dfbfd5319 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -165,6 +165,10 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp var/list/L = list() for(var/turf/T in get_area_turfs(thearea.type)) L+=T + + if(!L || !L.len) + usr << "No area available." + usr.loc = pick(L) /mob/dead/observer/verb/follow() diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 67572598124..5edc60e0e33 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -80,7 +80,7 @@ M.show_message( message, 1, blind_message, 2) -//This is aweful +//This is awful /mob/attackby(obj/item/weapon/W as obj, mob/user as mob) //Holding a balloon will shield you from an item that is_sharp() ... cause that makes sense @@ -108,7 +108,7 @@ //If the mob is not wearing a shield or otherwise is not shielded if ((!( shielded ) || !( W.flags ) & NOSHIELD)) spawn( 0 ) - if (W) + if (W && istype(W, /obj/item)) //The istype is necessary for things like bodybags which are structures that do not have an attack() proc. W.attack(src, user) return return