Alright im making and upcoming map called The Tavern and it includes various heroes created by people here at the hive but this is besides the point.
One ability is called Mind Flay, the first time it is cast not all the dummy units are either created or receive the items created via trigger im not sure wich. I think usualy 1 unit gets the spell from the item casted on them the first time i cast mindflay. But the 2nd+ times i cast it it works perfectly does anyone know whats wrong?
One ability is called Mind Flay, the first time it is cast not all the dummy units are either created or receive the items created via trigger im not sure wich. I think usualy 1 unit gets the spell from the item casted on them the first time i cast mindflay. But the 2nd+ times i cast it it works perfectly does anyone know whats wrong?
-
MF I
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Mind Flay - Mind Flayer
-
Actions
- Set L = (Position of (Casting unit))
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 600.00 of L matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))) and do (Actions)
-
Loop - Actions
- Set Mana_MindFlay = (Mana_MindFlay + (Integer((Mana of (Picked unit)))))
- Unit - Set mana of (Picked unit) to 0.00%
- Set L = (Position of (Picked unit))
- Special Effect - Create a special effect at L using Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_L)
- Unit - Cause (Casting unit) to damage (Picked unit), dealing ((Real(Mana_MindFlay)) / 3.20) damage of attack type Chaos and damage type Normal
- Set Mana_MindFlay = 0
- Set L = (Position of (Picked unit))
- Item - Create Dummy MI Item at L
- Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at L facing Default building facing degrees
- Hero - Give (Last created item) to (Last created unit)
- Custom script: call RemoveLocation(udg_L)
- Hero - Order (Last created unit) to use (Item carried by (Last created unit) in slot 1) on (Picked unit)
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
-
Events