mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-27 10:32:08 +00:00
Runtime fixes for:
/mob/attackby() Bodybag (obj/structure/crate) were getting typecasted into /obj/item/weapon. /mob/dead/observer/proc/dead_tele() Added a check for a null or empty list of area's for the mob to be moved to. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5273 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user