mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user