Fix automator not toggling autobuyers

Fixes #734
This commit is contained in:
Andrei Andreev 2019-08-09 21:22:22 +03:00 committed by GitHub
parent 376b846146
commit bc74a25a06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ const AutomatorCommands = ((() => {
const fixedMode = ctx.PrestigeEvent[0].tokenType.$autobuyerCurrencyMode;
const autobuyer = ctx.PrestigeEvent[0].tokenType.$autobuyer;
return () => {
autobuyer.isOn = on;
autobuyer.isActive = on;
if (duration !== undefined) {
autobuyer.mode = durationMode;
autobuyer.limit = new Decimal(1e-3 * duration);
@ -570,4 +570,4 @@ const AutomatorCommands = ((() => {
compile: (ctx, C) => compileConditionLoop(C.visit(ctx.comparison), C.visit(ctx.block)),
},
];
})());
})());