MNoya / Element-TD

Element Tower Defense
http://www.eletd.com
64 stars 22 forks source link

fix(tower_autoattack): Temporary fix for towers not autoatacking in 7.20E #489

Closed nokusukun closed 5 years ago

nokusukun commented 5 years ago

Issue

Since the latest patch, the GetAttackRange() method became missing on some specific towers. Specifically, the ones that use an attack_targeting modifier. This might be tracked down and patched more elegantly in buildinghelper but for now this will suffice.

Fix

Changed the findRadius variable to use the tower's AcquisitionRange since that value and the AttackRange values are identical. The findRadius value can be also very forgiving since it's only used for calculating target acquisition.

Karawasa commented 5 years ago

Well done, thank you!

Karawasa commented 5 years ago

@nokusukun As a result of this fix, Windstorm tower no longer works. Could you please look into that?

Many thousands of players around the world thank you for what you have done!