[MIRROR] Removes ghost check for battlecruiser objective and fixes players being able to roll it multiple times in a row [MDB IGNORE] (#16541)

* Removes ghost check for battlecruiser objective and fixes players being able to roll it multiple times in a row (#70194)

Removes the ghost check for the battlecruiser objective
Fixes the same player being able to reroll battlecruiser

* Removes ghost check for battlecruiser objective and fixes players being able to roll it multiple times in a row

Co-authored-by: Salex08 <33989683+Salex08@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-29 22:43:11 -07:00
committed by GitHub
co-authored by Salex08
parent 049835aacc
commit 14482dcf1c
5 changed files with 10 additions and 12 deletions
@@ -117,12 +117,19 @@
/// The antag datum to give to the player spawned
var/antag_datum_to_give = /datum/antagonist/battlecruiser
/obj/effect/mob_spawn/ghost_role/human/syndicate/battlecruiser/allow_spawn(mob/user, silent = FALSE)
if(!(user.ckey in antag_team.players_spawned))
return TRUE
to_chat(user, span_boldwarning("You have already used up your chance to roll as Battlecruiser."))
return FALSE
/obj/effect/mob_spawn/ghost_role/human/syndicate/battlecruiser/special(mob/living/spawned_mob, mob/possesser)
. = ..()
if(!spawned_mob.mind)
spawned_mob.mind_initialize()
var/datum/mind/mob_mind = spawned_mob.mind
mob_mind.add_antag_datum(antag_datum_to_give, antag_team)
antag_team.players_spawned += (spawned_mob.ckey)
/datum/team/battlecruiser
name = "\improper Battlecruiser Crew"