- Joined
- Aug 14, 2006
- Messages
- 7,602
Creating a spell. Special effect leaks and I don't know how to fix it. If I put destroy special effect after creating it, it won't work. Fast help needed. The one who can help me, will have a reputation point.
Here is the trigger:
Here is the trigger:
-
Glacial Orb
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Glacial Orb
-
Actions
- Set TempLoc = ((Position of (Casting unit)) offset by 100.00 towards (Facing of (Casting unit)) degrees)
- Set TempLoc2 = ((Target point of ability being cast) offset by 1000.00 towards (Facing of (Casting unit)) degrees)
- Unit - Create 1 Glacial Orb Dummy 1 for (Owner of (Casting unit)) at TempLoc facing Default building facing degrees
- Set Glacial_Orb_Unit = (Last created unit)
- Unit - Order (Last created unit) to Move To TempLoc2
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_TempLoc)
- Custom script: call RemoveLocation(udg_TempLoc2)
-
For each (Integer Glacial_Orb_Integer_1) from 1 to 5, do (Actions)
-
Loop - Actions
- Set TempLoc3 = (Position of Glacial_Orb_Unit)
- Set TempGroup2 = (Units owned by Neutral Hostile)
- Set TempGroup = (Units within 250.00 of TempLoc3 matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is in TempGroup2) Equal to True) and (((Matching unit) has buff Invulnerable) Equal to False))))
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Unit - Cause (Casting unit) to damage (Picked unit), dealing 100.00 damage of attack type Spells and damage type Normal
- Special Effect - Create a special effect attached to the origin of (Picked unit) using war3mapImported\Shiva'sWrath.mdx
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TempGroup2)
- Custom script: call DestroyGroup(udg_TempGroup)
- Custom script: call RemoveLocation(udg_TempLoc3)
- Wait 1.00 seconds
-
Loop - Actions
-
Events