A spell which you throw a glaive, and then the glaive reaches the targeted point and flies back towards you... Glaive Throw
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Glaive Throw
Actions
Set GlaiveThrower = (Triggering unit)
Set GlaivePoint = (Target point of ability being cast)
Unit - Create 1 Glaive Dummy for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 200.00 towards (Facing of (Target unit of ability being cast)) degrees) facing Default building facing (270.0) degrees
Set GlaiveDummy = (Last created unit)
Unit - Order GlaiveDummy to Move To (Target point of ability being cast)
Wait 5.00 seconds
Trigger - Turn on Glaive Check 3 <gen>
Trigger - Turn on Glaive Check 2 <gen>
Glaive Check
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units within 220.00 of (Position of GlaiveDummy) matching (((Matching unit) belongs to an enemy of (Owner of GlaiveDummy)) Equal to True)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Unit - Cause GlaiveDummy to damage (Picked unit), dealing 10.00 damage of attack type Pierce and damage type Enhanced
Glaive Check 2
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaivePoint and within a range of 220.00) Equal to True
Actions
Unit - Order GlaiveDummy to Right-Click GlaiveThrower
Glaive Check 3
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaiveThrower and withing a range of 220.00) Equal to True
Actions
Unit - Remove GlaiveDummy from the game
(It Is Still ABIT Bugged
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Glaive Throw
Actions
Set GlaiveThrower = (Triggering unit)
Set GlaivePoint = (Target point of ability being cast)
Unit - Create 1 Glaive Dummy for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 200.00 towards (Facing of (Target unit of ability being cast)) degrees) facing Default building facing (270.0) degrees
Set GlaiveDummy = (Last created unit)
Unit - Order GlaiveDummy to Move To (Target point of ability being cast)
Wait 5.00 seconds
Trigger - Turn on Glaive Check 3 <gen>
Trigger - Turn on Glaive Check 2 <gen>
Glaive Check
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units within 220.00 of (Position of GlaiveDummy) matching (((Matching unit) belongs to an enemy of (Owner of GlaiveDummy)) Equal to True)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Unit - Cause GlaiveDummy to damage (Picked unit), dealing 10.00 damage of attack type Pierce and damage type Enhanced
Glaive Check 2
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaivePoint and within a range of 220.00) Equal to True
Actions
Unit - Order GlaiveDummy to Right-Click GlaiveThrower
Glaive Check 3
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaiveThrower and withing a range of 220.00) Equal to True
Actions
Unit - Remove GlaiveDummy from the game
(It Is Still ABIT Bugged