SkyXyden
New Member
- Reaction score
- 3
Q1) Something is wrong with the code below. The dummy unit is not casting the correct level spell.
Thanks in advance.
Code:
Holy Rain
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to ELEN 4 Holy Rain (Cast Point)
Actions
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Position of (Triggering unit))
Animation - Change (Last created unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
Unit - Add ELEN 4 Holy Rain (Damage Point) to (Last created unit)
If ((Level of ELEN 4 Holy Rain (Cast Point) for (Triggering unit)) Equal to 1) then do (Unit - Set level of ELEN 4 Holy Rain (Damage Point) for (Last created unit) to 1) else do (Do nothing)
If ((Level of ELEN 4 Holy Rain (Cast Point) for (Triggering unit)) Equal to 2) then do (Unit - Set level of ELEN 4 Holy Rain (Damage Point) for (Last created unit) to 2) else do (Do nothing)
If ((Level of ELEN 4 Holy Rain (Cast Point) for (Triggering unit)) Equal to 3) then do (Unit - Set level of ELEN 4 Holy Rain (Damage Point) for (Last created unit) to 3) else do (Do nothing)
If ((Level of ELEN 4 Holy Rain (Cast Point) for (Triggering unit)) Equal to 4) then do (Unit - Set level of ELEN 4 Holy Rain (Damage Point) for (Last created unit) to 4) else do (Do nothing)
If ((Level of ELEN 4 Holy Rain (Cast Point) for (Triggering unit)) Equal to 5) then do (Unit - Set level of ELEN 4 Holy Rain (Damage Point) for (Last created unit) to 5) else do (Do nothing)
If ((Level of ELEN 4 Holy Rain (Cast Point) for (Triggering unit)) Equal to 6) then do (Unit - Set level of ELEN 4 Holy Rain (Damage Point) for (Last created unit) to 6) else do (Do nothing)
Unit - Order (Last created unit) to Night Elf Priestess Of The Moon - Starfall
Sound - Play MalfurionWarcry1 <gen> at 100.00% volume, located at (Position of (Last created unit)) with Z offset 0.00
Unit - Add a 17.00 second Generic expiration timer to (Last created unit)
Thanks in advance.