Spell Range
When we need to know the range of a spell effect, we call scripts by the name “SpellRange”. If the scripts return any non-empty value then that value is used as the spell's range.. The value can be any integer or fractional value such as “12” or “3.25”.
Hook Parameters
Parameter 5 is the range as computed from the spell editor definition. This is the value that will be used if no script exists or the script returns an empty value.
Context
Attacker - the character that cast the spell
spell - the spell that is being cast