Off balance disarm

If it hits a wall or a person while under the effect of off balance.
This commit is contained in:
keronshb
2021-05-05 23:57:01 -04:00
parent be2e962983
commit 7947258e51
3 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -108,7 +108,7 @@
/datum/status_effect/off_balance/on_remove()
var/active_item = owner.get_active_held_item()
if(is_type_in_typecache(active_item, GLOB.shove_disarming_types))
if(active_item)
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 ..()