[FIX] Jobbaned can't spam-spawn as cult harvesters (#21656)

* fix: jobbaned can't spam-spawn as cult harvesters
https://github.com/ss220-space/Paradise/pull/1283

* fix: oops, what is this check?

* smoke needs create_smoke
This commit is contained in:
larentoun
2023-08-16 19:50:21 +01:00
committed by GitHub
parent ff909adfb1
commit 4efc40ccac
3 changed files with 5 additions and 5 deletions
+3 -1
View File
@@ -421,10 +421,12 @@
qdel(shade)
qdel(SS)
/proc/make_new_construct(mob/living/simple_animal/hostile/construct/c_type, mob/target, mob/user, cult_override = FALSE)
/proc/make_new_construct(mob/living/simple_animal/hostile/construct/c_type, mob/target, mob/user, cult_override = FALSE, create_smoke = FALSE)
if(jobban_isbanned(target, ROLE_CULTIST))
return
var/mob/living/simple_animal/hostile/construct/C = new c_type(get_turf(target))
if(create_smoke)
new /obj/effect/particle_effect/smoke/sleeping(target.loc)
C.faction |= "\ref[user]"
C.key = target.key
if(user && iscultist(user) || cult_override)