Closed PiotrKaszuba closed 1 month ago
From these notes, I mainly see that Tower._update_target_list()
has a bug about RANGE_CHECK_BONUS_FOR_OTHER_UNITS
.
Utils.get_units_in_range()
which adds RANGE_CHECK_BONUS_FOR_OTHER_UNITS
_target_is_valid()
which does NOT add RANGE_CHECK_BONUS_FOR_OTHER_UNITS
I can confirm, current behavior is incorrect.
This fix is fine:
My initial idea would be to fix _target_is_valid in tower.gd by adding: attack_range = Utils.apply_unit_range_extension(attack_range, _attack_target_type)
Observations:
var creeps_in_range: Array = Utils.get_units_in_range(self, _attack_target_type, get_position_wc3_2d(), attack_range)
My initial idea would be to fix
_target_is_valid
in tower.gd by adding:attack_range = Utils.apply_unit_range_extension(attack_range, _attack_target_type)