fixed flickering of priest 2 (player 2) when escorting with scavenger #2729
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.
this fixes issue : #2698
issue:
When using the Scavenger’s Escort ability on both Player 1’s (Red) and Player 2’s (Blue) Priests, player 1(red) was escorted successfully but when we try to escort the second player (priest blue) via the same scavenger it filickers between grey and blue which is not the correct behavior it should stay blue.

here is before :
and here is after :
Screen.Recording.2025-05-13.at.10.02.55.PM.mov
Root Cause:
The flickering was caused by G.grid.previewCreature(trgPos, targetData, trg.player, true) being called after applying the manual displayVisualState() and overlayVisualState(). The previewCreature method was continuously overriding the target’s hex visuals with a default semi-transparent or neutral (grey) model.
Fix:
We commented out the call to:
G.grid.previewCreature(trgPos, targetData, trg.player, true);
in the
select()
function of the Scavenger’s Escort logic. This prevents the preview function from interfering with the manually applied team-colored visual states (playerX), effectively eliminating the flicker.