Fixes blobbernaut spawning (#32954)

* Fixes blobbernaut spawning

* There is no mob yet, we can't poll for it
This commit is contained in:
KorPhaeron
2017-11-21 19:06:25 -06:00
committed by CitadelStationBot
parent dbf2467f5e
commit ddddac262e
+1 -1
View File
@@ -155,7 +155,7 @@
if(!can_buy(40))
return
var/list/mob/dead/observer/candidates = pollCandidatesForMob("Do you want to play as a [blob_reagent_datum.name] blobbernaut?", ROLE_BLOB, null, ROLE_BLOB, 50) //players must answer rapidly
var/list/mob/dead/observer/candidates = pollGhostCandidates("Do you want to play as a [blob_reagent_datum.name] blobbernaut?", ROLE_BLOB, null, ROLE_BLOB, 50) //players must answer rapidly
if(candidates.len) //if we got at least one candidate, they're a blobbernaut now.
B.max_integrity = initial(B.max_integrity) * 0.25 //factories that produced a blobbernaut have much lower health
B.obj_integrity = min(B.obj_integrity, B.max_integrity)