Merge pull request #16702 from SabreML/ghost-poll-names

Fixes some ghost poll chat messages being incorrect
This commit is contained in:
variableundefined
2021-09-17 20:39:58 -05:00
committed by GitHub
4 changed files with 7 additions and 5 deletions
@@ -266,9 +266,11 @@
possessed = TRUE
var/list/mob/dead/observer/candidates = SSghost_spawns.poll_candidates("Do you want to play as the spirit of [user.real_name]'s blade?", ROLE_PAI, FALSE, 10 SECONDS, source = src)
var/list/mob/dead/observer/candidates = SSghost_spawns.poll_candidates("Do you want to play as the spirit of [user.real_name]'s blade?", ROLE_PAI, FALSE, 10 SECONDS, source = src, role_cleanname = "possessed blade")
var/mob/dead/observer/theghost = null
if(QDELETED(src))
return
if(length(candidates))
theghost = pick(candidates)
var/mob/living/simple_animal/shade/sword/S = new(src)