Charge
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Charge of Darkness
Actions
Set ChargeCount = (ChargeCount + 1)
Set ChargeEffectType = Abilities\Spells\Other\HowlOfTerror\HowlTarget.mdl
Set ChargeUnit[ChargeCount] = (Triggering unit)
Set ChargeTarget[ChargeCount] = (Target unit of ability being cast)
Set ChargeTargetPoint[ChargeCount] = (Position of ChargeTarget[ChargeCount])
Cinematic - Ping minimap for (All allies of (Owner of ChargeUnit[ChargeCount])) at ChargeTargetPoint[ChargeCount] for 2.00 seconds
Custom script: call RemoveLocation (udg_ChargeTargetPoint[udg_ChargeCount])
Custom script: if IsUnitEnemy(GetTriggerUnit(), GetLocalPlayer()) then
Set ChargeEffectType = <Empty String>
Custom script: endif
Animation - Reset ChargeUnit[ChargeCount]'s body-part facing
Unit - Turn collision for ChargeUnit[ChargeCount] Off
Animation - Change ChargeUnit[ChargeCount]'s vertex coloring to (100.00%, 100.00%, 100.00%) with (10.00 + (15.00 x (Real((Level of Charge of Darkness for ChargeUnit[ChargeCount])))))% transparency
Animation - Change ChargeUnit[ChargeCount]'s animation speed to (80.00 + (50.00 x (Real((Level of Charge of Darkness for ChargeUnit[ChargeCount])))))% of its original speed
Unit - Grant shared vision of ChargeTarget[ChargeCount] to (Owner of ChargeUnit[ChargeCount])
Special Effect - Create a special effect attached to the overhead of ChargeTarget[ChargeCount] using ChargeEffectType
Set ChargeEffect[ChargeCount] = (Last created special effect)
Custom script: call SetUnitAnimationByIndex(udg_ChargeUnit[udg_ChargeCount], 2)
Special Effect - Create a special effect attached to the origin of ChargeUnit[ChargeCount] using war3mapImported\ShockwaveMissilePurple.mdx
Set ChargeEffect3[ChargeCount] = (Last created special effect)