Hi in this trigger I want to create a dummy every 20 seconds and give the ability, cast it then remove the ability aswell removing the dummy. But it doesnt seem to be working correctly because when it triggers it creates the dummy but when it triggers again he fires the ability why? I added the trigger aswell I have a wait because it is a cast time on the ability
Trigger:
- Chain Breath Easy
- Events
- Time - Every 20.00 seconds of game time
- Conditions
- Actions
- Set TempLoc = (Position of Drephinos [Human Form] 0001 <gen>)
- Set TempGroup = (Units of type Chain Breath of Frost Dummy)
- Unit - Create 1 Chain Breath of Frost Dummy for Player 12 (Brown) at TempLoc facing Default building facing degrees
- Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
- Unit - Pause Drephinos [Human Form] 0001 <gen>
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Unit - Add Chain breath of Frost to (Picked unit)
- Set TempGroup2 = (Units in Deep breath Region <gen> matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True))
- Unit - Order (Picked unit) to Orc Far Seer - Chain Lightning (Random unit from TempGroup2)
- Custom script: call DestroyGroup(udg_TempGroup2)
- Loop - Actions
- Custom script: call DestroyGroup(udg_TempGroup)
- Custom script: call RemoveLocation(udg_TempLoc)
- Wait 4.00 seconds
- Unit - Unpause Drephinos [Human Form] 0001 <gen>
- Set TempGroup = (Units of type Chain Breath of Frost Dummy)
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Unit - Remove Chain breath of Frost from (Picked unit)
- Loop - Actions
- Custom script: call DestroyGroup(udg_TempGroup)
- Events