Broken Trigger

Status
Not open for further replies.
Level 3
Joined
Aug 11, 2007
Messages
36
I have this trigger:
  • 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)
      • Custom script: call RemoveLocation(udg_L)
Which elicits an error (Expected 'set')
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.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
It may be the wrong line, but it points you.
Depending on error type it is either the same line or the line above. And in some very rare cases completely wrong.
 
Status
Not open for further replies.
Top