Fades out and deletes materialize_overlay and secondary_overlay upon skipTurn #2708
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 PR addresses issue #2688, where using Scavenger's Escort Service -> skipTurn left the previewCreature sprites for both Scavenger and the target behind. It can be noted that Scavenger's ghost disappeared when its player generated a new one by hovering over a new move tile during their turn, but the enemy's ghost would not.
Changes:
Added minimal logic in skipTurn() of Game.ts to fade out and replace both materialize_overlay and secondary_overlay with a null value.
Escort.mov
Effect:
Both ghosts disappear upon skipTurn. Shouldn't be any adverse effects, as the game simply generates new materialize_overlay/secondary_overlay whenever previewCreature is called and the value is not found.
Tested on Google Chrome
No need for tokens
#2688