Give 25% chance to slash an enemy with a lightning came from sky.Dealing 900 damage to attacked unit.
Yeah. i know this is very noob spell. but i'm new at passive skill.if this has many leaks as you thought, i'm sorry.
the trigger is:
[TRIGGER=Flash Sword Ability]
Flash Sword Ability
Events
Unit - A unit Is attacked
Conditions
(Level of Flash Sword for (Attacking unit)) Greater than 0
Actions
Set Caster = (Attacking unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 4) Equal to 1
Then - Actions
Set Target = (Attacked unit)
Set Angle = (Facing of Caster)
Animation - Play Caster's Attack Slam animation
Unit - Cause Caster to damage Target, dealing 900.00 damage of attack type Hero and damage type Lightning
Special Effect - Create a special effect at (Position of Target) using Abilities\Weapons\Bolt\BoltImpact.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Position of Target) using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Special Effect - Destroy (Last created special effect)
Unit - Turn collision for Target Off
Trigger - Turn off (This trigger)
Trigger - Turn on Flash Sword Knockback <gen>
If ((Level of Flash Sword for Caster) Greater than 0) then do (Wait 0.95 seconds) else do (Do nothing)
Trigger - Turn off Flash Sword Knockback <gen>
Unit - Turn collision for Target On
Trigger - Turn on (This trigger)
Else - Actions
[/TRIGGER]
[TRIGGER=Flash Sword Knockback]
Flash Sword Knockback
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Terrain pathing at ((Position of Target) offset by 10.00 towards Angle degrees) of type Walkability is off) Equal to False
Then - Actions
Unit - Cause Caster to damage Target, dealing 10.00 damage of attack type Spells and damage type Lightning
Set Targt_Pos = (Position of Target)
Unit - Move Target instantly to (Targt_Pos offset by 1.00 towards Angle degrees)
Special Effect - Create a special effect attached to the origin of Target using Abilities\Spells\Orc\MirrorImage\MirrorImageDeathCaster.mdl
Destructible - Pick every destructible within 105.00 of Targt_Pos and do (Destructible - Kill (Picked destructible))
Else - Actions
[/TRIGGER]
and i don't know the JASS is.
credits:
Special thanks to:
Rogue Galaxy:the idea of Flash Sword
baassee & Maker:the two that helped me to fix the leaks
you the downloader
Keywords:
passive,lightning,flash,sword,bash,greater bash