oh yeaaaaah

This commit is contained in:
MrMelbert
2020-07-08 02:46:20 -05:00
parent 99d2739a17
commit 5230ee09b1
+5 -1
View File
@@ -319,7 +319,11 @@ GLOBAL_LIST_INIT(hallucination_list, list(
/datum/hallucination/oh_yeah/proc/bubble_attack(turf/landing)
var/charged = FALSE //only get hit once
while(get_turf(bubblegum) != landing && target && target.stat != DEAD)
while(get_turf(bubblegum) != landing && target?.stat != DEAD)
if(!landing)
break
if((get_turf(bubblegum)).loc.z != landing.loc.z)
break
bubblegum.forceMove(get_step_towards(bubblegum, landing))
bubblegum.setDir(get_dir(bubblegum, landing))
target.playsound_local(get_turf(bubblegum), 'sound/effects/meteorimpact.ogg', 150, 1)