- Joined
- Aug 11, 2007
- Messages
- 36
I have this trigger:
Similar triggers have worked fine in the past, I'm a tad lost.
-
Camus Envenom
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Venom Poison
-
Actions
- Custom script: bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units owned by (Owner of (Casting unit)) of type Hero) and do (Actions)
-
Loop - Actions
- Set L = (Position of (Picked unit))
- Unit - Create 1 BasicDummy for Neutral Extra at L facing Default building facing degrees
- Unit - Add Envenom Camus to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Heal (Picked unit)
- Trigger - Add to Remove Dummy <gen> the event (Unit - (Last created unit) Finishes casting an ability)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_L)
-
Events
Code:
call ForGroupBJ( GetUnitsOfPlayerAndTypeId(GetOwningPlayer(GetSpellAbilityUnit()), 'E000'), function Trig_Camus_Envenom_Func002A )
Similar triggers have worked fine in the past, I'm a tad lost.