Off Balance for Guns only again

Was intended for guns
This commit is contained in:
keronshb
2021-05-04 00:51:16 -04:00
parent c5aeaf97fe
commit be2e962983
3 changed files with 6 additions and 1 deletions

View File

@@ -108,7 +108,7 @@
/datum/status_effect/off_balance/on_remove()
var/active_item = owner.get_active_held_item()
if(active_item)
if(is_type_in_typecache(active_item, GLOB.shove_disarming_types))
owner.visible_message("<span class='warning'>[owner.name] regains their grip on \the [active_item]!</span>", "<span class='warning'>You regain your grip on \the [active_item]</span>", null, COMBAT_MESSAGE_RANGE)
return ..()