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