How to use the @ffxiv-teamcraft/simulator.ManipulationII 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-durability-restoration-later.ts View on Github external
const usedManipulationIITooEarly = manipulationIIIndexes.some((index) => {
      const repairSteps = simulationResult.steps.slice(index + 1, index + 1 + new ManipulationII().getDuration(simulationResult.simulation));
      const matches = repairSteps.some(step => {
        return step.afterBuffTick.solidityDifference === 0 && step.solidityDifference === 0;
      });
      if (matches) {
        this.matchingIndex = index + 1;
      }
      return matches;
    });