mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-25 01:22:13 +00:00
fixes nullpointer caused by broken organ list
the mysterious broken list bug has struck again
This commit is contained in:
@@ -159,9 +159,9 @@
|
||||
src.damage += 0.2 * process_accuracy
|
||||
//Damaged one shares the fun
|
||||
else
|
||||
var/victim = pick(owner.internal_organs)
|
||||
var/datum/organ/internal/O = owner.internal_organs[victim]
|
||||
O.damage += 0.2 * process_accuracy
|
||||
var/datum/organ/internal/O = pick(owner.internal_organs)
|
||||
if(O)
|
||||
O.damage += 0.2 * process_accuracy
|
||||
|
||||
//Detox can heal small amounts of damage
|
||||
if (src.damage && src.damage < src.min_bruised_damage && owner.reagents.has_reagent("anti_toxin"))
|
||||
|
||||
Reference in New Issue
Block a user