Jolly chap*
New Member
- Reaction score
- 34
I'm having a problem with a spell I'm trying to make.
Thunder Fall is based on an edited Blizzard that lasts one wave. When the "shards" drop down on the ground, it's supposed to damage the enemies around that location, dealing pure damage. But, it always affects enemies who are in the exact center of the map, not around the target point of ability being cast (Temp_Location), which is very unusual.
Trigger:
- Thunder Fall
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Thunder Fall
- Actions
- Wait 0.75 seconds
- Set Temp_Location = (Target point of ability being cast)
- Set TempGroup = (Units within 350.00 of Temp_Location matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is alive) Equal to True)))
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Unit - Cause (Casting unit) to damage (Picked unit), dealing (75.00 x (Real((Level of Thunder Fall for (Triggering unit))))) damage of attack type Chaos and damage type Universal
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Weapons\Bolt\BoltImpact.mdl
- Special Effect - Destroy (Last created special effect)
- Loop - Actions
- Custom script: call RemoveLocation(udg_Temp_Location)
- Custom script: call DestroyGroup(udg_TempGroup)
- Events
Thunder Fall is based on an edited Blizzard that lasts one wave. When the "shards" drop down on the ground, it's supposed to damage the enemies around that location, dealing pure damage. But, it always affects enemies who are in the exact center of the map, not around the target point of ability being cast (Temp_Location), which is very unusual.