mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
[MIRROR] Fixes a mind transfer exploit concerning holopara/guardians. (#7261)
* Fixes a mind transfer exploit concerning holopara/guardians. (#60533) Inverts the positions of the guardian/holoparasite typecheck code and the anti_magic/antag datums one. * Fixes a mind transfer exploit concerning holopara/guardians. Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -29,15 +29,15 @@
|
||||
return FALSE
|
||||
|
||||
var/mob/living/victim = targets[1] //The target of the spell whos body will be transferred to.
|
||||
if(istype(victim, /mob/living/simple_animal/hostile/guardian))
|
||||
var/mob/living/simple_animal/hostile/guardian/stand = victim
|
||||
if(stand.summoner)
|
||||
victim = stand.summoner
|
||||
var/datum/mind/VM = victim.mind
|
||||
if(victim.anti_magic_check(TRUE, FALSE) || VM.has_antag_datum(/datum/antagonist/wizard) || VM.has_antag_datum(/datum/antagonist/cult) || VM.has_antag_datum(/datum/antagonist/changeling) || VM.has_antag_datum(/datum/antagonist/rev) || victim.key[1] == "@")
|
||||
if(!silent)
|
||||
to_chat(user, span_warning("[victim.p_their(TRUE)] mind is resisting your spell!"))
|
||||
return FALSE
|
||||
if(istype(victim, /mob/living/simple_animal/hostile/guardian))
|
||||
var/mob/living/simple_animal/hostile/guardian/stand = victim
|
||||
if(stand.summoner)
|
||||
victim = stand.summoner
|
||||
|
||||
//You should not be able to enter one of the most powerful side-antags as a fucking wizard.
|
||||
if(istype(victim,/mob/living/simple_animal/hostile/imp/slaughter))
|
||||
|
||||
Reference in New Issue
Block a user