Skip to content

Commit

Permalink
Fix for fisticuffs causedata. (#5836)
Browse files Browse the repository at this point in the history
# About the pull request

Selfevident.

# Explain why it's good for the game

Is fix.

# Changelog

:cl:
fix: Fisticuffs attacks are no longer attributed to wrong mob.
/:cl:
  • Loading branch information
Segrain authored Feb 27, 2024
1 parent 8828ad8 commit b170387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/human_attackhand.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
attack = attacking_mob.species.secondary_unarmed
return

last_damage_data = create_cause_data("fisticuffs", src)
last_damage_data = create_cause_data("fisticuffs", attacking_mob)
attacking_mob.attack_log += text("\[[time_stamp()]\] <font color='red'>[pick(attack.attack_verb)]ed [key_name(src)]</font>")
attack_log += text("\[[time_stamp()]\] <font color='orange'>Has been [pick(attack.attack_verb)]ed by [key_name(attacking_mob)]</font>")
msg_admin_attack("[key_name(attacking_mob)] [pick(attack.attack_verb)]ed [key_name(src)] in [get_area(src)] ([src.loc.x],[src.loc.y],[src.loc.z]).", src.loc.x, src.loc.y, src.loc.z)
Expand Down

0 comments on commit b170387

Please sign in to comment.