diff --git a/config.js b/config.js index 040b6f6d..e13c5c54 100644 --- a/config.js +++ b/config.js @@ -10973,7 +10973,7 @@ var toReturn = { title: "Magmamancers", fire: function () { if (challengeActive("Metal") || game.global.challengeActive == "Transmute"){ - var challenge = game.challenges[game.global.challengeActive]; + var challenge = (challengeActive("Metal")) ? game.challenges.Metal : game.challenges[game.global.challengeActive]; challenge.holdMagma = true; message("This book really doesn't help too much while you're dealing with the minerlessness of this dimension. Better let your scientists hold this one for you for a bit.", "Notices"); return; diff --git a/main.js b/main.js index 5d3af8f5..4c6c3edc 100644 --- a/main.js +++ b/main.js @@ -10778,7 +10778,7 @@ function startFight() { if (game.global.brokenPlanet && !game.global.mapsActive){ badName += ' '; } - if (game.global.challengeActive == "Glass" || challengeActive("Slow") || (game.global.challengeActive == "Desolation" && game.global.mapsActive) || (cell.u2Mutation && cell.u2Mutation.length) || ((game.badGuys[cell.name].fast || cell.mutation == "Corruption") && game.global.challengeActive != "Coordinate" && game.global.challengeActive != "Nom")) + if (game.global.challengeActive == "Glass" || challengeActive("Slow") || (game.global.challengeActive == "Desolation" && game.global.mapsActive) || (cell.u2Mutation && cell.u2Mutation.length) || ((game.badGuys[cell.name].fast || cell.mutation == "Corruption") && game.global.challengeActive != "Coordinate" && !challengeActive("Nom"))) badName += ' '; if ((challengeActive("Electricity") || game.global.challengeActive == "Mapocalypse")){ badName += ' '; @@ -14940,7 +14940,7 @@ function fight(makeUp) { if (game.global.world >= getObsidianStart() && !game.global.mapsActive){ game.global.soldierHealth = 0; } - var checkFast = (game.global.challengeActive == "Glass" || challengeActive("Slow") || ((((game.badGuys[cell.name].fast || cell.mutation == "Corruption") && game.global.challengeActive != "Nom") || game.global.voidBuff == "doubleAttack") && game.global.challengeActive != "Coordinate")); + var checkFast = (game.global.challengeActive == "Glass" || challengeActive("Slow") || ((((game.badGuys[cell.name].fast || cell.mutation == "Corruption") && !challengeActive("Nom")) || game.global.voidBuff == "doubleAttack") && game.global.challengeActive != "Coordinate")); if (game.global.soldierHealth <= 0) checkFast = false; if (checkFast && game.global.challengeActive == "Exterminate" && game.challenges.Exterminate.experienced) checkFast = false; var forceSlow = false;