OK so i made a aura/passive ability (based off of kirbyman1's narcolepsy aura).
Its Devotion with an added trigger affect. 6 levels, increases armor and has a chance to cast frost nova at attackers, but its not casting.
The hero has the buff, the spell costs zero mana, and i am getting attacked.
Any one have any suggestions?
Its Devotion with an added trigger affect. 6 levels, increases armor and has a chance to cast frost nova at attackers, but its not casting.
Code:
ShiverArmor
Events
Unit - A unit Is attacked
Conditions
Or - Any (Conditions) are true
Conditions
((Attacked unit) has buff Shiver Armor Level 1) Equal to True
((Attacked unit) has buff Shiver Armor Level 2) Equal to True
((Attacked unit) has buff Shiver Armor Level 3) Equal to True
((Attacked unit) has buff Shiver Armor Level 4) Equal to True
((Attacked unit) has buff Shiver Armor Level 5) Equal to True
((Attacked unit) has buff Shiver Armor Level 6) Equal to True
Actions
Set ShiverArmor = (Position of (Attacked unit))
Set ShiverPercent = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) has buff Shiver Armor Level 1) Equal to True
ShiverPercent Less than or equal to 15
Then - Actions
Unit - Create 1 Dummy for (Owner of (Attacked unit)) at ShiverArmor facing Default building facing degrees
Unit - Add Frost Nova (Shiver, Level 1) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacking unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) has buff Shiver Armor Level 2) Equal to True
ShiverPercent Less than or equal to 15
Then - Actions
Unit - Create 1 Dummy for (Owner of (Attacked unit)) at ShiverArmor facing Default building facing degrees
Unit - Add Frost Nova (Shiver, Level 2) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacking unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) has buff Shiver Armor Level 3) Equal to True
ShiverPercent Less than or equal to 15
Then - Actions
Unit - Create 1 Dummy for (Owner of (Attacked unit)) at ShiverArmor facing Default building facing degrees
Unit - Add Frost Nova (Shiver, Level 3) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacking unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) has buff Shiver Armor Level 4) Equal to True
ShiverPercent Less than or equal to 15
Then - Actions
Unit - Create 1 Dummy for (Owner of (Attacked unit)) at ShiverArmor facing Default building facing degrees
Unit - Add Frost Nova (Shiver, Level 4) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacking unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) has buff Shiver Armor Level 5) Equal to True
ShiverPercent Less than or equal to 15
Then - Actions
Unit - Create 1 Dummy for (Owner of (Attacked unit)) at ShiverArmor facing Default building facing degrees
Unit - Add Frost Nova (Shiver, Level 5) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacking unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) has buff Shiver Armor Level 6) Equal to True
ShiverPercent Less than or equal to 15
Then - Actions
Unit - Create 1 Dummy for (Owner of (Attacked unit)) at ShiverArmor facing Default building facing degrees
Unit - Add Frost Nova (Shiver, Level 6) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Attacking unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Else - Actions
Do nothing
Custom script: call RemoveLocation( udg_ShiverArmor )
The hero has the buff, the spell costs zero mana, and i am getting attacked.
Any one have any suggestions?