Skip to content

Commit

Permalink
fixes headspike runtime error and bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Salex08 committed Jun 27, 2022
1 parent 2aa62cd commit ed1f76e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/objects/structures/headpike.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
return ..()

/obj/structure/headpike/CheckParts(list/parts_list)
victim = locate() in parts_list
victim = locate(/obj/item/bodypart/head) in parts_list
if(!victim) //likely a mapspawned one
victim = new(src)
victim.real_name = random_unique_name(prob(50))
spear = locate(speartype) in parts_list
spear = locate(/obj/item/spear) in parts_list
if(!spear)
spear = new speartype(src)
spear = new /obj/item/spear()
update_appearance()
return ..()

Expand Down

0 comments on commit ed1f76e

Please sign in to comment.