Skip to content

Conversation

@bozimmerman
Copy link
Contributor

@bozimmerman bozimmerman commented Jan 16, 2026

There are only 2 pets in the game with ranged attacks, and neither of them were able to use them from a distance. This fixes that issue by:

  1. Not having the pet ALWAYS charge at the target when combat starts
  2. When the AI decides on an action, choose the range that is appropriate to that action.

(P.S. There is still a minor annoyance to this implementation, btw: -- When the pets ranged attack is on cooldown, they are likely to choose melee and charge at that time. It's not 100% though, and is only mildly annoying, but I may look closer at this in the future).


This change is Reviewable

@AppVeyorBot
Copy link

@bozimmerman bozimmerman force-pushed the pet_ai_ranged_combat_fix branch from 6cb10c7 to b2f4630 Compare January 17, 2026 05:49
@AppVeyorBot
Copy link

@billy1arm billy1arm merged commit 04ec78e into mangoszero:master Jan 17, 2026
8 checks passed
@bozimmerman bozimmerman deleted the pet_ai_ranged_combat_fix branch January 18, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants