Skip to content

Commit adcc812

Browse files
ToasticalToastical
andauthored
migrates and fixes envy knife (ParadiseSS13#29027)
Co-authored-by: Toastical <toast@toaster.com>
1 parent 63fb835 commit adcc812

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

code/modules/ruins/lavalandruin_code/sin_ruins.dm

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,14 @@
190190
throwforce = 10
191191
w_class = WEIGHT_CLASS_NORMAL
192192
hitsound = 'sound/weapons/bladeslice.ogg'
193+
new_attack_chain = TRUE
193194

194-
/obj/item/kitchen/knife/envy/afterattack__legacy__attackchain(atom/movable/AM, mob/living/carbon/human/user, proximity)
195+
/obj/item/kitchen/knife/envy/after_attack(atom/target, mob/user, proximity_flag, click_parameters)
195196
. = ..()
196-
if(!proximity)
197-
return
198-
if(!istype(user))
197+
if(!ishuman(user))
199198
return
200-
if(ishuman(AM))
201-
var/mob/living/carbon/human/H = AM
199+
if(ishuman(target))
200+
var/mob/living/carbon/human/H = target
202201
if(user.real_name != H.dna.real_name)
203202
user.real_name = H.dna.real_name
204203
H.dna.transfer_identity(user)

0 commit comments

Comments
 (0)