From dafcc2a374facee36bea9ac0620e003c731e4799 Mon Sep 17 00:00:00 2001 From: GinjaNinja32 Date: Sat, 14 Feb 2015 23:29:11 +0000 Subject: [PATCH] Fixes runtime when walking over shards with no shoes --- code/game/objects/items/weapons/shards.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/weapons/shards.dm b/code/game/objects/items/weapons/shards.dm index a57463eee78..a4fc0081c20 100644 --- a/code/game/objects/items/weapons/shards.dm +++ b/code/game/objects/items/weapons/shards.dm @@ -86,7 +86,7 @@ if(affecting.take_damage(5, 0)) H.UpdateDamageIcon() H.updatehealth() - if(!(H.species & NO_PAIN)) + if(!(H.species && (H.species.flags & NO_PAIN))) H.Weaken(3) ..()