@@ -129,7 +129,10 @@ export class ReligionManager implements Automation {
129
129
const tearsAvailableForUse =
130
130
this . _workshopManager . getValue ( "tears" ) - this . _workshopManager . getStock ( "tears" ) ;
131
131
132
- if ( tearsAvailableForUse < tearsNeeded ) {
132
+ if (
133
+ ! isNil ( this . _host . gamePage . religionTab . sacrificeBtn ) &&
134
+ tearsAvailableForUse < tearsNeeded
135
+ ) {
133
136
// if no ziggurat, getBestUnicornBuilding will return unicornPasture
134
137
// TODO: ☝ Yeah. So?
135
138
@@ -508,6 +511,7 @@ export class ReligionManager implements Automation {
508
511
const alicorns = this . _workshopManager . getResource ( "alicorn" ) ;
509
512
const available = this . _workshopManager . getValueAvailable ( "alicorn" ) ;
510
513
if (
514
+ ! isNil ( this . _host . gamePage . religionTab . sacrificeAlicornsBtn ) &&
511
515
this . settings . sacrificeAlicorns . trigger <= available &&
512
516
this . settings . sacrificeAlicorns . trigger <= alicorns . value
513
517
) {
@@ -531,6 +535,7 @@ export class ReligionManager implements Automation {
531
535
const tears = this . _workshopManager . getResource ( "tears" ) ;
532
536
const available = this . _workshopManager . getValueAvailable ( "tears" ) ;
533
537
if (
538
+ ! isNil ( this . _host . gamePage . religionTab . refineBtn ) &&
534
539
this . settings . refineTears . trigger <= available &&
535
540
this . settings . refineTears . trigger <= tears . value
536
541
) {
@@ -552,6 +557,7 @@ export class ReligionManager implements Automation {
552
557
const timeCrystals = this . _workshopManager . getResource ( "timeCrystal" ) ;
553
558
const available = this . _workshopManager . getValueAvailable ( "timeCrystal" ) ;
554
559
if (
560
+ ! isNil ( this . _host . gamePage . religionTab . refineTCBtn ) &&
555
561
this . settings . refineTimeCrystals . trigger <= available &&
556
562
this . settings . refineTimeCrystals . trigger <= timeCrystals . value
557
563
) {
0 commit comments