Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset nextScanTime only when actually scanning for targets. #17694

Merged
merged 1 commit into from Feb 22, 2020

Conversation

pchote
Copy link
Member

@pchote pchote commented Feb 16, 2020

Fixes #17691.

The problem occurs because AutoTarget's TickIdle implementation would call ScanAndAttack each tick, which would reset nextScanTime and then do nothing because AttackFollow disables this kind of scanning. When AttackFollow then wants to scan, it can't do anything because nextScanTime > 0. Moving the nextScanTime reset after the disable check prevents TickIdle from resetting it.

@pchote pchote added this to the Next Release milestone Feb 16, 2020
@reaperrr reaperrr merged commit 28f7604 into OpenRA:bleed Feb 22, 2020
@pchote pchote deleted the fix-ftur-scan branch July 18, 2020 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flame tower does not autoattack enemy units, nor does the AA gun, but the Tesla coil does
3 participants