Function withCombatFlags

  • Perform a given action with certain combat setting flags set, returning them to their initial values if possible

    Type Parameters

    • T

    Parameters

    • action: (() => T)

      The action you want to do with the given combat setting flags

        • (): T
        • Returns T

    • Rest...flags: {
          flag:
              | "aabosses"
              | "wowbar"
              | "bothcombatinterf"
              | "compactmanuel"
              | "eternalmrj"
              | "disablelovebugs"
              | "boringdarts";
          value: boolean;
      }[]

      A spread array of objects that contain a combat setting flag and its desired value; these look like the return value of getCombatFlags

    Returns T

    The result of the action