LightChaosma
New Member
- Reaction score
- 60
if you say its very unlikely i beleive yo
Code:
Dark Star
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Dark Star
Actions
Set DarkUnit = (Triggering unit)
Set DarkCaster = (Position of (Triggering unit))
Special Effect - Create a special effect at DarkCaster using DarkStar.mdx
set DarkEffect = (Last Created Special effect) // DarkEffect is a special effect variable
Set DarkGroup = (Units within 800.00 of DarkCaster matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of DarkUnit)) Equal to True))))
Unit Group - Pick every unit in DarkGroup and do (Actions)
Loop - Actions
Unit - Create 1 Dark Star Dummy for (Owner of DarkUnit) at DarkCaster facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Human Blood Mage - Banish (Picked unit)
Wait 4.00 seconds
Destroy DarkEffect
Unit Group - Pick every unit in DarkGroup and do (Actions)
Loop - Actions
Unit - Cause DarkUnit to damage (Picked unit), dealing (450.00 x (Real((Level of Dark Star for DarkUnit)))) damage of attack type Spells and damage type Normal
custom script: call RemoveLocation(udg_DarkCaster)
custom script: call DestroyGroup(udg_DarkGroup)
set DarkUnit = (no unit) //this is not necesary