Skip to content

Commit

Permalink
bugfix: wizarditis no longer let's you into teleport proof areas and …
Browse files Browse the repository at this point in the history
…prohibited zones (ss220-space#4088)
Vladisvell authored and SuhEugene committed Dec 22, 2023

Verified

This commit was signed with the committer’s verified signature.
SuhEugene SuhEugene
1 parent 0c7567e commit b9e5476
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions code/datums/diseases/viruses/wizarditis.dm
Original file line number Diff line number Diff line change
@@ -88,6 +88,11 @@ STI KALY - blind
for(var/area/space/S in theareas)
theareas -= S

for(var/ar in theareas)
var/area/zone = ar
if(zone.tele_proof)
theareas -= zone

if(!theareas||!theareas.len)
return

@@ -109,7 +114,10 @@ STI KALY - blind
if(!L)
return

affected_mob.say("SCYAR NILA [uppertext(thearea.name)]!")
affected_mob.loc = pick(L)
var/turf/target_turf = pick(L)

if(is_teleport_allowed(target_turf.z))
affected_mob.say("SCYAR NILA [uppertext(thearea.name)]!")
affected_mob.loc = target_turf

return

0 comments on commit b9e5476

Please sign in to comment.