• Tutorials

  • Home
  • SpellRange

    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".

    Parameters

    Parameter [5] = the number of targets as computed from the spell editor definition. This is the value that will be used if no script exists or the script returns an mpty value.

    Context

    Attacker - the character that cast the spell
    spell - the spell that is being cast