I made a spell that dispel magic..
Eg. when my spell move through elune arrow, the elune arrow will be destroyed... But instead it did not destroy, cos of the Locust Ability, how do i pick the unit even if it has locust ability??
(As i had tried to removed locuts ability from the unit, and the dispel magic successfully removed the unit(Without Locust Ability)).
This is my trigger below:
EDIT: Anyone noe hw to pick the unit, even if it has locust ability?? (+rep)
Thanks in Advance!
Eg. when my spell move through elune arrow, the elune arrow will be destroyed... But instead it did not destroy, cos of the Locust Ability, how do i pick the unit even if it has locust ability??
(As i had tried to removed locuts ability from the unit, and the dispel magic successfully removed the unit(Without Locust Ability)).
This is my trigger below:
Trigger:
- Time Wave Effects
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- Set TimeWave_DummyLoc = (Position of TimeWave_Dummy)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (TimeWave_Dummy is alive) Equal to True
- Then - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- TimeWave_Distance Greater than or equal to TimeWave_MaxDistance
- Then - Actions
- Unit - Kill TimeWave_Dummy
- Destructible - Pick every destructible within 450.00 of TimeWave_DummyLoc and do (Actions)
- Loop - Actions
- Destructible - Kill (Picked destructible)
- Loop - Actions
- Custom script: call RemoveLocation(udg_TimeWave_DummyLoc)
- Else - Actions
- Set TimeWave_Movement = (TimeWave_DummyLoc offset by 35.00 towards TimeWave_Angle degrees)
- Unit - Move TimeWave_Dummy instantly to TimeWave_Movement
- Set TimeWave_Distance = (TimeWave_Distance + 35.00)
- Set TimeWave_UnitGroup = (Units within 350.00 of TimeWave_DummyLoc matching ((((Matching unit) is A structure) Not equal to True) and ((((Matching unit) is Magic Immune) Not equal to True) and ((((Matching unit) belongs to an enemy of (Owner of TimeWave_Caster)) Equal to True) and ((
- Unit Group - Pick every unit in TimeWave_UnitGroup and do (Actions)
- Loop - Actions
- Unit - Kill (Picked unit)
- Set TimeWave_PickedUnitLoc = (Position of (Picked unit))
- Special Effect - Create a special effect at TimeWave_PickedUnitLoc using Abilities\Spells\Items\SpellShieldAmulet\SpellShieldCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_TimeWave_PickedUnitLoc)
- Loop - Actions
- Destructible - Pick every destructible within 350.00 of TimeWave_DummyLoc and do (Actions)
- Loop - Actions
- Destructible - Kill (Picked destructible)
- Loop - Actions
- Custom script: call RemoveLocation(udg_TimeWave_DummyLoc)
- Custom script: call RemoveLocation(udg_TimeWave_Movement)
- Custom script: call DestroyGroup(udg_TimeWave_UnitGroup)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
- Custom script: call RemoveLocation(udg_TimeWave_DummyLoc)
- Trigger - Turn off (This trigger)
- If - Conditions
- Events
EDIT: Anyone noe hw to pick the unit, even if it has locust ability?? (+rep)
Thanks in Advance!