Fix for bait toy

Fixed the monster bait toy so that it can only be used on mobs immediately next to you, preventing them from telekinetically shoving you over.
This commit is contained in:
SatinIsle
2024-08-21 14:22:56 +01:00
parent 3028ffd1c7
commit e4dc2683e3
+3
View File
@@ -1163,6 +1163,9 @@
/obj/item/weapon/toy/monster_bait/afterattack(var/atom/A, var/mob/user)
var/mob/living/simple_mob/M = A
if(M.z != user.z || get_dist(user,M) > 1)
to_chat(user, "<span class='notice'>You need to stand right next to \the [M] to bait it.</span>")
return
if(!istype(M))
return
if(!M.vore_active)