- Joined
- Apr 14, 2012
- Messages
- 2,901
Hello; I have recently been given by Radicool the trigger of a spell called Sharpnel (Dota). (It wasn't MUI yet but I added a few tweaks. Is it MUI now?)The spell is based off on Dispel Magic. It's supposed to damage units in an area but it doesn't. Please help
-
Dwarven Snipers Sharpnel 1
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Shrapnel
-
Actions
- Set SharpnelCounter = (SharpnelCounter + 1)
- Set SharpnelCaster[SharpnelCounter] = (Triggering unit)
- Trigger - Turn on Dwarven Snipers Sharpnel 2 <gen>
- Wait 8.00 seconds
- Trigger - Turn off Dwarven Snipers Sharpnel 2 <gen>
-
Events
-
Dwarven Snipers Sharpnel 2//initially off
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Set SharpnelTmpPoint = (Target point of ability being cast)
- -------- This is a formula to calculate the damage. This is the actual damage in dota too. --------
- -------- 12, 24, 36, 48 --------
- Set SharpnelDamage = (12 x (Level of Shrapnel for SharpnelCaster[SharpnelCounter]))
- -------- Picks all units that are an enemy of the caster --------
- Set SharpnelGroup = (Units within 350.00 of SharpnelTmpPoint matching (((Matching unit) belongs to an enemy of (Owner of SharpnelCaster[SharpnelCounter])) Equal to True))
-
Unit Group - Pick every unit in SharpnelGroup and do (Actions)
-
Loop - Actions
- -------- Checks if the unit is a structure or not. --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) is A structure) Equal to True
-
Then - Actions
- -------- Divides damage by 3 if its a structure --------
- Unit - Cause (Casting unit) to damage (Picked unit), dealing ((Real(SharpnelDamage)) / 3.00) damage of attack type Chaos and damage type Normal
-
Else - Actions
- -------- Otherwise normal damage is applied --------
- Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real(SharpnelDamage)) damage of attack type Chaos and damage type Normal
-
If - Conditions
- -------- Here we create the dummy to slow the enemy --------
- Unit - Create 1 Dummy Unit for (Owner of SharpnelCaster[SharpnelCounter]) at SharpnelTmpPoint facing Default building facing degrees
- Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_SharpnelTmpPoint)
-
Events