Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
matches(simulationResult: SimulationResult): boolean {
const blessingIndex = simulationResult.steps.findIndex(step => step.action.is(ByregotsBrow));
const clone = simulationResult.simulation.clone();
clone.run(true, blessingIndex - 1);
return clone.getBuff(Buff.INNER_QUIET) && clone.getBuff(Buff.INNER_QUIET).stacks > 6 && simulationResult.simulation.quality < simulationResult.simulation.recipe.quality;
}
matches(simulationResult: SimulationResult): boolean {
const blessingIndex = simulationResult.steps.findIndex(step => step.action.is(ByregotsBlessing));
const clone = simulationResult.simulation.clone();
clone.run(true, blessingIndex - 1);
return clone.getBuff(Buff.INNER_QUIET) && clone.getBuff(Buff.INNER_QUIET).stacks === 5;
}
matches(simulationResult: SimulationResult): boolean {
const blessingIndex = simulationResult.steps.findIndex(step => step.action.is(ByregotsBlessing));
const clone = simulationResult.simulation.clone();
clone.run(true, blessingIndex - 1);
return clone.getBuff(Buff.INNER_QUIET) && clone.getBuff(Buff.INNER_QUIET).stacks < 6 && simulationResult.simulation.quality < simulationResult.simulation.recipe.quality;
}
return patientTouchIndexes.some(index => {
const clone = simulationResult.simulation.clone();
clone.run(true, index);
return clone.getBuff(Buff.INNER_QUIET) && clone.getBuff(Buff.INNER_QUIET).stacks > 1;
});
}