mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-19 18:56:56 +01:00
10 lines
493 B
Plaintext
10 lines
493 B
Plaintext
/mob/living/handle_micro_bump_other(mob/living/target)
|
|
|
|
// If the target is not in combat mode, if the target is a player mob with the preference off, stop the interaction.
|
|
var/datum/preferences/target_prefs = target.client?.prefs || GLOB.preferences_datums[target.ckey]
|
|
if(target.a_intent != INTENT_HARM && SEND_SIGNAL(target, COMSIG_COMBAT_MODE_CHECK, COMBAT_MODE_INACTIVE) && (target.ckey && !target_prefs?.stomppref))
|
|
return FALSE
|
|
|
|
// Do the rest of the function normally.
|
|
. = ..()
|