Leazy
You can change this now in User CP.
- Reaction score
- 50
Hello!
I made a Frost Nova spell, and this is the trigger:
If I use it with no enemies nearby it works fine, however - if I use it with any enemies around it wont work. Whats the problem
I made a Frost Nova spell, and this is the trigger:
Code:
Frost Nova
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Frost Nova
Actions
Unit Group - Add (Triggering unit) to DMGUnitGroup
Set Point[1] = (Position of (Triggering unit))
Set UnitGroup[1] = (Units within 500.00 of Point[1] matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True)))
Unit Group - Pick every unit in UnitGroup[1] and do (Actions)
Loop - Actions
Quest - Display to (All players) the Quest Update message: DOES THIS HAPPEN? A
Unit - Cause (Triggering unit) to damage (Picked unit), dealing (20.00 + ((Real((Level of Frost Nova for (Triggering unit)))) x 40.00)) damage of attack type Spells and damage type Normal
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at Point[1] facing Default building facing degrees
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Unit - Add Frost Nova [Dummy] (Immobilizing) to (Last created unit)
Unit - Set level of Frost Nova [Dummy] (Immobilizing) for (Last created unit) to (Level of Frost Nova for (Triggering unit))
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
For each (Integer A) from 1 to 60, do (Actions)
Loop - Actions
Quest - Display to (All players) the Quest Update message: DOES THIS HAPPEN? B
Set Point[2] = ((Position of (Triggering unit)) offset by 256.00 towards (6.00 x (Real((Integer A)))) degrees)
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at Point[1] facing Default building facing degrees
Animation - Change (Last created unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
Unit - Add Frost Nova [Dummy] (Effect) to (Last created unit)
Unit - Order (Last created unit) to Neutral - Breath Of Frost Point[2]
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Custom script: call RemoveLocation (udg_Point[2])
Custom script: call RemoveLocation (udg_Point[1])
Custom script: call DestroyGroup(udg_UnitGroup[1])
If I use it with no enemies nearby it works fine, however - if I use it with any enemies around it wont work. Whats the problem