Trigger:Eclipse

Accessed 270 times | Last modified 20:27, 26 December 2008 by Psf Kurt.

From DotA Allstars Wiki

Trigger: Eclipse
Implementation Moon Rider's Eclipse
Main Ability A054 / A00U Derived From ANcl
Abilities Used None
Dummy Units Created None
Events Registered
  • Any unit's spell comes into effect: Initial

Initial

  1. Check if the learned spell is A054 (Eclipse) or A00U (Eclipse with Aghanim's Scepter). If so, continue; if not, quit the execution.
  2. Check if the learned spell is A054 (Eclipse).
    1. If so, set NumberOfBeams to 1 + 3 * (Level of Eclipse for Luna), and MaxTimesHit to 4.
    2. If not, set NumberOfBeams to 4 * (Level of Eclipse for Luna), and MaxTimesHit to 5.
  3. Cache the following variables: LucentLevel with the value of Level of A042 for Luna, Limit with the value of NumberOfBeams, TargetLimit with the value of MaxTimesHit, and Hero with the value of Luna herself.
  4. Create a new trigger based on Cast Beam that fires every 0.5 seconds.

Cast Beam

  1. Retrieve the following variables from the cache: LucentLevel, Limit, TargetLimit, Hero (which is referred to as simply "Luna" below).
  2. Set BeamTarget to a random unit in all units within 700 range of Luna that match both of the following:
  3. Check if BeamTarget exists and is not a Revenant (Level 3).
    1. If so:
      1. Cache HitTimes for BeamTarget with the value of (HitTimes for BeamTarget) + 1.
      2. Create the effect Abilities\Spells\NightElf\Starfall\StarfallCaster.mdl to BeamTarget's origin attachment that lasts 3 seconds or until BeamTarget dies.
      3. Make Luna damage BeamTarget by LucentLevel * 75 with Attack Type Spells, Damage Type Fire.
    2. If not, do nothing.
  4. Check if this trigger has fired Limit times. If so, disable this trigger; if not, do nothing.

Copyright © 2008 DotA Allstars Wiki


Development and programming by

Trystero and Wyvernoid

Design by AntonW