Slaughter Demons no longer have an infinite range, point-and-click attack that can also be used while phased. (#56495)

Fixes this by adding an adjacency check.
This commit is contained in:
Timberpoes
2021-01-30 21:25:06 -03:00
committed by GitHub
parent 9589c6de17
commit f457ad5f02
@@ -112,6 +112,11 @@
/mob/living/simple_animal/hostile/imp/slaughter/CtrlShiftClickOn(atom/A)
if(!isliving(A))
return ..()
if(!Adjacent(A))
to_chat(src, "<span class='warning'>You are too far away to use your slam attack on [A]!</span>")
return
if(slam_cooldown + slam_cooldown_time > world.time)
to_chat(src, "<span class='warning'>Your slam ability is still on cooldown!</span>")
return