1) Make a new chain lightning tower (probably happens with other types too)
2) Upgrade it a bunch
3) Eventually apply an upgrade that changes the targeting type to "Farthest on Path"
4) Observe that your tower no longer attacks
This happens on both master and resizeable branches.
I don't understand how this code is supposed to work, so this would be a nightmare for me to try and fix
You should probably branch the fix off of resizeable, as there were a bunch of changes to this stuff in that code (removing the underscore naming hack we did a while back).
1) Make a new chain lightning tower (probably happens with other types too) 2) Upgrade it a bunch 3) Eventually apply an upgrade that changes the targeting type to "Farthest on Path" 4) Observe that your tower no longer attacks
This happens on both master and resizeable branches.
I don't understand how this code is supposed to work, so this would be a nightmare for me to try and fix
You should probably branch the fix off of resizeable, as there were a bunch of changes to this stuff in that code (removing the underscore naming hack we did a while back).