Skip to content

Commit

Permalink
Fixes particle weather immunity check (#1992)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertNanotracen authored May 26, 2024
1 parent e792833 commit 6869dda
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ GLOBAL_LIST_EMPTY(siren_objects)

//If mob is not in a turf
var/turf/mob_turf = get_turf(mob_to_check)

if((immunity_type && HAS_TRAIT(mob_to_check, immunity_type)) || HAS_TRAIT(mob_to_check, TRAIT_WEATHER_IMMUNE))
return

var/atom/loc_to_check = mob_to_check.loc
while(loc_to_check != mob_turf)
if((immunity_type && HAS_TRAIT(loc_to_check, immunity_type)) || HAS_TRAIT(loc_to_check, TRAIT_WEATHER_IMMUNE))
Expand Down

0 comments on commit 6869dda

Please sign in to comment.