Skip to content

Commit

Permalink
Merge pull request ParadiseSS13#13290 from SteelSlayer/holopara-explo…
Browse files Browse the repository at this point in the history
…it-fix

Fixes an exploit with guardian creating items
  • Loading branch information
Fox-McCloud authored Apr 23, 2020
2 parents 3da989c + 09e0dbf commit bf58b82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/gamemodes/miniantags/guardian/guardian.dm
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,12 @@
if(used == TRUE)
to_chat(user, "[used_message]")
return
used = TRUE // Set this BEFORE the popup to prevent people using the injector more than once, polling ghosts multiple times, and receiving multiple guardians.
var/choice = alert(user, "[confirmation_message]",, "Yes", "No")
if(choice == "No")
to_chat(user, "<span class='warning'>You decide against using the [name].</span>")
used = FALSE
return
used = TRUE
to_chat(user, "[use_message]")
var/list/mob/dead/observer/candidates = pollCandidates("Do you want to play as the [mob_name] of [user.real_name]?", ROLE_GUARDIAN, 0, 100)
var/mob/dead/observer/theghost = null
Expand Down

0 comments on commit bf58b82

Please sign in to comment.