Escort service unavailable bug #2804
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix Escort Service Availability Bug
I am not sure if this is the fix you're looking for, but it resolves the premature cooldown issue I was experiencing.
This fixes #2802
Problem
Escort Service ability becomes unavailable even when Scavenger has movement points remaining. This happens intermittently after moving around the map.
Root Cause
getEscortUsableHexes()was callinggetFlyingRange()with incorrect parameters:getFlyingRangeto return hexes on wrong rowsusableHexes.length = 0Solution
crea.x, crea.ycrea.sizeTesting
See ESCORT_SERVICE_FIX.md for detailed before/after comparison and testing instructions.
https://streamable.com/svz8rc [before patch - cooldown was premature]
https://streamable.com/avm0yu [after patch - cooldown is correct]
Video links expire in 2 days (30th October where I am from)