How to use the @ffxiv-teamcraft/simulator.Buff.STEADY_HAND_II function in @ffxiv-teamcraft/simulator

To help you get started, we’ve selected a few @ffxiv-teamcraft/simulator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ffxiv-teamcraft / ffxiv-teamcraft / apps / client / src / app / pages / simulator / rotation-tips / tips / use-sh1-instead.ts View on Github external
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;
    });
  }