mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
Fixes a closet bug (#20819)
This commit is contained in:
@@ -386,14 +386,14 @@
|
||||
return
|
||||
|
||||
/obj/structure/closet/shove_impact(mob/living/target, mob/living/attacker)
|
||||
if(opened)
|
||||
if(opened && can_close())
|
||||
target.forceMove(src)
|
||||
visible_message("<span class='danger'>[attacker] shoves [target] inside [src]!</span>", "<span class='warning'>You hear a thud, and something clangs shut.</span>")
|
||||
close()
|
||||
add_attack_logs(attacker, target, "shoved into [src]")
|
||||
return TRUE
|
||||
|
||||
if(can_open())
|
||||
if(!opened && can_open())
|
||||
open()
|
||||
visible_message("<span class='danger'>[attacker] shoves [target] against [src], knocking it open!</span>")
|
||||
target.KnockDown(3 SECONDS)
|
||||
|
||||
Reference in New Issue
Block a user