mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Fix #7577
This commit is contained in:
@@ -26,16 +26,12 @@
|
|||||||
|
|
||||||
/obj/item/weapon/holder/micro/attack_self(mob/living/carbon/user) //reworked so it works w/ nonhumans
|
/obj/item/weapon/holder/micro/attack_self(mob/living/carbon/user) //reworked so it works w/ nonhumans
|
||||||
for(var/L in contents)
|
for(var/L in contents)
|
||||||
if(ishuman(L) && user.checkClickCooldown()) // These canClicks() are repeated here to make sure users can't avoid the click delay
|
if(ishuman(L))
|
||||||
var/mob/living/carbon/human/H = L
|
var/mob/living/carbon/human/H = L
|
||||||
H.help_shake_act(user)
|
H.help_shake_act(user)
|
||||||
user.setClickCooldown(user.get_attack_speed()) //uses the same cooldown as regular attack_hand
|
if(isanimal(L))
|
||||||
return
|
|
||||||
if(isanimal(L) && user.checkClickCooldown())
|
|
||||||
var/mob/living/simple_mob/S = L
|
var/mob/living/simple_mob/S = L
|
||||||
user.visible_message("<span class='notice'>[user] [S.response_help] \the [S].</span>")
|
user.visible_message("<span class='notice'>[user] [S.response_help] \the [S].</span>")
|
||||||
user.setClickCooldown(user.get_attack_speed())
|
|
||||||
|
|
||||||
|
|
||||||
/obj/item/weapon/holder/micro/update_state()
|
/obj/item/weapon/holder/micro/update_state()
|
||||||
if(isturf(loc) || !held_mob || held_mob.loc != src)
|
if(isturf(loc) || !held_mob || held_mob.loc != src)
|
||||||
|
|||||||
Reference in New Issue
Block a user