How to use the @ffxiv-teamcraft/simulator.Buff.STEADY_HAND 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-sh2-instead.ts View on Github external
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;
    });
  }