ReDruMMurDeR
Member
- Reaction score
- 0
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Forked Lightning (a dummy target ability)
- Actions
- Unit Group - Add (Target unit of ability being cast) to tempunitgroup
- For each (Integer A) from 1 to 3, do (Actions)
- o Loop - Actions
- Set temppoint = (Position of (Target unit of ability being cast))
- Set tempunitgroup2 = (Units within 400.00 of temppoint matching ((((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True) and (((Matching unit) is in tempunitgroup) Equal to False)))
- Unit Group - Add (Random unit from tempunitgroup2) to tempunitgroup
- Custom script: call DestroyGroup (udg_tempgroup2)
- Custom script: call RemoveLocation (udg_temppoint)
- o Loop - Actions
- Unit Group - Pick every unit in tempunitgroup and do (Actions)
- Loop - Actions
- Set temppoint = (Position of (Casting unit))
- Set temppoint2 = (Position of (Picked unit))
- Lightning - Create a Forked Lightning lightning effect from source temppoint to target temppoint2
- Unit - Cause (Casting unit) to damage (Picked unit), dealing (2.00 x ((Real((Intelligence of (Casting unit) (Include bonuses)))) x (Real((Level of Forked Lightning for (Casting unit)))))) damage of attack type Spells and damage type Normal
- Custom script: call DestroyGroup (udg_tempgroup)
- Custom script: call RemoveLocation (udg_temppoint)
- Custom script: call RemoveLocation (udg_temppoint2
- Custom script: call DestroyLightning(udg_TempLightningEffect)
- Loop - Actions
that is the trigger i use but the lightning dosnt get removed AND the point of attack dosnt remove so it attacks 2 places at once