Enemy Flee System

Enemy Flee Flee Settings

9.1 Flee Types

  • Flee on Enemy Sight
  • Flee on Enemy Attack

9.2 Flee Parameters

  • Distance (px): Player-enemy distance to trigger fleeing.
  • Cooldown (sec): Waiting time after fleeing.

9.3 Flee Flow (3-Stage Defense Mechanism)

Phase 1 – Flee

  1. Instantly stops the attack.
  2. Switches to Flee config.
  3. Heads to the nearest safe portal.
  4. Uses anti-ban route.
  5. Jumps from a random distance.
  6. If pursuit continues, continues fleeing after jumping.

Phase 2 – Return

  1. Moves to the safe map.
  2. Heads to the portal of the map it came from without waiting.
  3. Jumps back.

Phase 3 – Safe Zone Wait

Waits in the portal safe zone. All conditions must be met to exit:

  • Minimum cooldown time must have passed.
  • Enemy must have left the area.
  • HP must be 100%.
  • Shields must be 100% charged in both configs.
  • The bot completes shields by changing configs if necessary.