removed SC self backup and added a null

This commit is contained in:
Verkister
2018-05-15 11:52:38 +03:00
parent 1c519d28ed
commit 7a828f7cd0
2 changed files with 1 additions and 3 deletions
@@ -462,8 +462,6 @@
if(istype(HP) && HP.nif && HP.nif.flag_check(NIF_O_SCOTHERS,NIF_FLAGS_OTHER))
var/datum/nifsoft/soulcatcher/SC = HP.nif.imp_check(NIF_SOULCATCHER)
SC.catch_mob(H)
else if(H.nif && H.nif.flag_check(NIF_SC_BACKUPS))
SStranscore.m_backup(H,0) //If dying inside a pred who lacks SC, let ours do a backup if enabled before it's gone for good.
else if(H.nif && H.nif.flag_check(NIF_O_SCMYSELF,NIF_FLAGS_OTHER)) //They are caught in their own NIF
var/datum/nifsoft/soulcatcher/SC = H.nif.imp_check(NIF_SOULCATCHER)
SC.catch_mob(H)
+1 -1
View File
@@ -526,7 +526,7 @@
//Re-supply a NIF if one was backed up with them.
if(MR.nif_path)
var/obj/item/device/nif/nif = new MR.nif_path(occupant,,MR.nif_savedata)
var/obj/item/device/nif/nif = new MR.nif_path(occupant,null,MR.nif_savedata)
for(var/path in MR.nif_software)
new path(nif)
nif.durability = MR.nif_durability //Restore backed up durability after restoring the softs.