File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 95
95
if (ismob(target))
96
96
target. attack_log += text(" \[ [ time_stamp()] \] <font color='orange'>Has been [ what_done] by [ user_txt] [ object_txt] . [ intent_txt] [ addition_txt] </font>" )
97
97
if (! iscarbon(user))
98
- QDEL_NULL ( target. lastassailant)
98
+ target. lastassailant = null
99
99
100
100
if (ismob(user) && ismob(target))
101
101
target. assaulted_by(user)
Original file line number Diff line number Diff line change @@ -59,16 +59,7 @@ var/list/non_standard_maint_areas = list(
59
59
60
60
/ mob / proc / assaulted_by(var /mob /M ,var /weak_assault = FALSE )
61
61
if (! iscarbon(M))
62
- var /ref_in_use = FALSE
63
- if (istype(src , / mob / living/ simple_animal/ hostile))
64
- var /mob /living/simple_animal/hostile/H = src
65
- for (var /datum /weakref/friend in H. friends)
66
- if (friend. get() == lastassailant. get())
67
- lastassailant = null
68
- ref_in_use = TRUE
69
- break ;
70
- if (! ref_in_use)
71
- QDEL_NULL (lastassailant)
62
+ lastassailant = null
72
63
else
73
64
lastassailant = makeweakref(M)
74
65
You can’t perform that action at this time.
0 commit comments