Skip to content

Commit

Permalink
Spider Type Check Fix (tgstation#78817)
Browse files Browse the repository at this point in the history
## About The Pull Request
Fixes bug, I am running out of gbp plz merge
## Why It's Good For The Game
Fixes tgstation#78802
## Changelog
:cl:
fix: Spider types get properly checked again.
/:cl:
  • Loading branch information
Comxy authored Oct 7, 2023
1 parent f1be138 commit 924ceed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ GLOBAL_LIST_INIT(turfs_pass_meteor, typecacheof(list(

#define isclown(A) (istype(A, /mob/living/basic/clown))

#define isspider(A) (istype(A, /mob/living/basic/spider/giant))
#define isspider(A) (istype(A, /mob/living/basic/spider))


//Misc mobs
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/effects/spiderwebs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@

/obj/structure/spider/sticky/CanAllowThrough(atom/movable/mover, border_dir)
. = ..()
if(isspider(mover))
if(HAS_TRAIT(mover, TRAIT_WEB_SURFER))
return TRUE
if(!isliving(mover))
return
if(isspider(mover.pulledby))
if(HAS_TRAIT(mover.pulledby, TRAIT_WEB_SURFER))
return TRUE
loc.balloon_alert(mover, "stuck in web!")
return FALSE
Expand Down

0 comments on commit 924ceed

Please sign in to comment.