Advertisement
dominus

Untitled

Feb 21st, 2023
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. // At this point, we're within range, with state set.
  2. if (check_lof &&
  3. !Fast_pathfinder_client::is_straight_path(npc, opponent)) {
  4. state = approach;
  5. if (npc->get_attack_mode() == Actor::flank || winf->get_uses() == Weapon_info::ranged)
  6. wander_for_attack();
  7. else
  8. approach_foe(true); // Try to get adjacent.
  9. return;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement