Class InstantMaulPlan

java.lang.Object
privbot.mechanics.InstantMaulPlan

public final class InstantMaulPlan extends Object
A detached instant-maul proposal over the selected opponent and one fight frame. No action is dispatched here. Server-specific maul IDs and same-tick behavior must be verified by the caller; a dispatch acceptance is not a confirmed equip or special attack.
Since:
1.2.0
  • Method Details

    • plan

      public static InstantMaulPlan.Plan plan(PvpFightHistory.View fight, Boolean enabled, Boolean opponentAlive, Boolean instantSpecVerified, Boolean genericSpecialClear, int hpThreshold, Set<Integer> maulIds, Boolean eatDue, Integer lastAskedTick, Boolean sameTickSequenceVerified, PvpArbiter.Context arbiter)
      Select an instant finisher using current HP bar, distance, energy, orb and exact container items. The caller supplies the same-tick alive, KO/eat and generic-special-clear decisions and accepted-click history. instantSpecVerified must be true only for a server where this special's instant behavior is verified. sameTickSequenceVerified must only be true where that server is known to process equip, attack resend and orb in one tick. If it is unknown or false, a carried maul can be proposed for equip but the orb is held until a later frame proves it is worn. Resolve the returned actions in order in this plan's tick; skip dependent attack and orb actions if the tick changes or the equip or attack resend is rejected. Verify the worn item and resulting special independently after dispatch. This proposal does not merge other plans: the caller must arbitrate any other actions and ensure the same-tick eat decision remains valid.