A targeting indicator that draws a range circle on
the ground, by default the cast range around the caster. The radius can grow while the
player aims, and a second circle can show the largest radius of that growth.
Range growth
The range circle, TargeterDefinitionLine and
TargeterDefinitionCone compute a growing range
each frame from a base range and three growth values, rangeGrowthStartTime,
rangeGrowthDuration and rangeGrowthMax. The time t is the time in seconds since
the targeting mode started.
- The base range
b is the holder's base range property if it is set, otherwise the
display cast range of the spell.
- The range grows only if the spell has cast range growth (at some level both
mCastRangeGrowthMax and mCastRangeGrowthDuration are greater than 0), or if
rangeGrowthDuration and rangeGrowthMax are both set and greater than 0.
Otherwise the range is b.
- The start
s is rangeGrowthStartTime if it is set, otherwise
mCastRangeGrowthStartTime at the spell level. Until t passes s, the range is
b.
- The duration
d is rangeGrowthDuration if it is set and not 0, otherwise
mCastRangeGrowthDuration at the spell level.
- The maximum
m is rangeGrowthMax if it is set, otherwise
mCastRangeGrowthMax at the spell level. A maximum that the game sets on the spell
at run time takes precedence over both.
- The range is
max(b, min(m, b + (t - s) / d * (m - b))).
The range grows linearly from b to m over d seconds and then holds at m. A
duration of 0 makes the range jump to m at the start time.