Prevents virus stacking (#19539)

This commit is contained in:
Cameron Lennox
2026-06-25 00:37:57 +02:00
committed by GitHub
parent 16c6676879
commit ea4b8561c5
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -49,6 +49,9 @@ GLOBAL_LIST_INIT(diseases, subtypesof(/datum/disease))
/datum/disease/proc/infect(mob/living/infectee, make_copy = TRUE)
var/datum/disease/D = make_copy ? Copy() : src
if(infectee.HasDisease(D))
qdel(D)
return
infectee.addDisease(D)
D.affected_mob = infectee
GLOB.active_diseases += D