- Joined
- Jun 18, 2007
- Messages
- 214
Ok guys I need help this is Chain Mana Burn spell, now this spell works fine first time it is activated and than next time actions don't wanna acitvate I don't understand where did I go wrong please help.
-
Spell Chain
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Chain Burn
-
Actions
- Set CB_Caster = (Casting unit)
- Set CB_Target = (Target unit of ability being cast)
- Unit Group - Add CB_Target to CB_NoTargG
-
Unit Group - Pick every unit in (Units within 450.00 of (Position of CB_Target) matching ((((Matching unit) is in CB_NoTargG) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of CB_Caster)) Equal to True) and (((Mana of (Matching unit)) Greater than or equal to 1.00) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to CB_TarG
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (CB_TarG is empty) Equal to True
-
Then - Actions
- Unit Group - Remove all units from CB_NoTargG
- Unit Group - Remove all units from CB_TarG
- Custom script: set udg_CB_Caster = null
- Custom script: set udg_CB_Target = null
- Custom script: call DestroyGroup(udg_CB_NoTargG)
- Custom script: call DestroyGroup(udg_CB_TarG)
-
Else - Actions
- Set CB_Target = (Random unit from CB_TarG)
- Unit Group - Add CB_Target to CB_NoTargG
- Set CB_TempPoint = (Position of CB_Target)
- Unit - Create 1 Dummy Unit for (Owner of CB_Caster) at CB_TempPoint facing Default building facing degrees
- Unit - Add Mana Burn Damage to (Last created unit)
- Unit - Set level of Mana Burn Damage for (Last created unit) to (Level of Chain Burn for CB_Caster)
- Unit - Order (Last created unit) to Night Elf Demon Hunter - Mana Burn CB_Target
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_CB_TempPoint)
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 450.00 of (Position of CB_Target) matching ((((Matching unit) is in CB_NoTargG) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of CB_Caster)) Equal to True) and (((Mana of (Matching unit)) Greater than or equal to 1.00) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to CB_TarG
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (CB_TarG is empty) Equal to True
-
Then - Actions
- Unit Group - Remove all units from CB_NoTargG
- Unit Group - Remove all units from CB_TarG
- Custom script: set udg_CB_Caster = null
- Custom script: set udg_CB_Target = null
- Custom script: call DestroyGroup(udg_CB_NoTargG)
- Custom script: call DestroyGroup(udg_CB_TarG)
-
Else - Actions
- Set CB_Target = (Random unit from CB_TarG)
- Set CB_TempPoint = (Position of CB_Target)
- Unit - Create 1 Dummy Unit for (Owner of CB_Caster) at CB_TempPoint facing Default building facing degrees
- Unit - Add Mana Burn Damage to (Last created unit)
- Unit - Set level of Mana Burn Damage for (Last created unit) to (Level of Chain Burn for CB_Caster)
- Unit - Order (Last created unit) to Night Elf Demon Hunter - Mana Burn CB_Target
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_CB_TempPoint)
-
If - Conditions
-
Unit Group - Pick every unit in (Units within 450.00 of (Position of CB_Target) matching ((((Matching unit) is in CB_NoTargG) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of CB_Caster)) Equal to True) and (((Mana of (Matching unit)) Greater than or equal to 1.00) and do (Actions)
-
Loop - Actions
- Unit Group - Remove all units from CB_NoTargG
- Unit Group - Remove all units from CB_TarG
- Custom script: set udg_CB_Caster = null
- Custom script: set udg_CB_Target = null
- Custom script: call DestroyGroup(udg_CB_NoTargG)
- Custom script: call DestroyGroup(udg_CB_TarG)
-
If - Conditions
-
Events