Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return allsh1Indexes.some(sh1Index => {
const actionsUsedWithSh1 = simulationResult.steps.slice(sh1Index, sh1Index + 5) || [];
const clone = simulationResult.simulation.clone();
clone.removeBuff(Buff.STEADY_HAND);
const result = actionsUsedWithSh1.some(step => step.action.getSuccessRate(clone) < 80);
if (result) {
this.matchingIndex = sh1Index;
}
return result;
});
}