diff --git a/src/js/rulesAutosurgery.js b/src/js/rulesAutosurgery.js index bd9e0efef97dd5b78480f55cfc13b916470f1bf1..01cb96f44d6b1c24bba0ec915d2d975ee037045e 100644 --- a/src/js/rulesAutosurgery.js +++ b/src/js/rulesAutosurgery.js @@ -241,12 +241,10 @@ globalThis.rulesAutosurgery = (function() { // @ts-expect-error if (thisSurgery.genes[key] >= 2 && typeof slave.geneticQuirks[key] !== "string" && slave.geneticQuirks[key] < 2) { const add = new App.Medicine.Surgery.Procedures.AddGene(slave, key); - surgeries.push(`surgery to add ${key} to ${his} genetic code`); - App.Medicine.Surgery.apply(add, V.cheatMode === 1); + geneModProcedure(`surgery to add ${key} to ${his} genetic code`, add); } else if (thisSurgery.genes[key] === 0 && slave.geneticQuirks[key] !== 0 && V.geneticFlawLibrary === 1) { const remove = new App.Medicine.Surgery.Procedures.RemoveGene(slave, key, ""); - surgeries.push(`surgery to remove ${key} from ${his} genetic code`); - App.Medicine.Surgery.apply(remove, V.cheatMode === 1); + geneModProcedure(`surgery to remove ${key} from ${his} genetic code`, remove); } } }