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
- Check if the learned spell is A054 (Eclipse) or A00U (Eclipse with Aghanim's Scepter). If so, continue; if not, quit the execution.
- Check if the learned spell is A054 (Eclipse).
- If so, set NumberOfBeams to
1 + 3 * (Level of Eclipse for Luna), and MaxTimesHit to 4.
- If not, set NumberOfBeams to
4 * (Level of Eclipse for Luna), and MaxTimesHit to 5.
- 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.
- Create a new trigger based on Cast Beam that fires every 0.5 seconds.
Cast Beam
- Retrieve the following variables from the cache: LucentLevel, Limit, TargetLimit, Hero (which is referred to as simply "Luna" below).
- Set BeamTarget to a random unit in all units within 700 range of Luna that match both of the following:
- Check if BeamTarget exists and is not a Revenant (Level 3).
- If so:
- Cache HitTimes for BeamTarget with the value of
(HitTimes for BeamTarget) + 1.
- Create the effect
Abilities\Spells\NightElf\Starfall\StarfallCaster.mdl to BeamTarget's origin attachment that lasts 3 seconds or until BeamTarget dies.
- Make Luna damage BeamTarget by
LucentLevel * 75 with Attack Type Spells, Damage Type Fire.
- If not, do nothing.
- 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