Any idea what is wrong with this spell ? It creates dummy unit and caster is casting the spell all the time, but no1 gets ensared :/ My quess is on Unit Group, but I cant find the problem..
Trigger:
- Ensare
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Mass Ensare
- Actions
- Set TempPoint = (Target point of ability being cast)
- Set TempReal = 500.00
- Set Temp_Group = (Units within TempReal of TempPoint matching (((Triggering unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
- Set TempUnit = (Last created unit)
- Unit - Add a 5.00 second Generic expiration timer to TempUnit
- Unit - Add Dummy Ensare to TempUnit
- Unit Group - Pick every unit in Temp_Group and do (Actions)
- Loop - Actions
- Unit - Order TempUnit to Orc Raider - Ensnare (Picked unit)
- Loop - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call DestroyGroup(udg_Temp_Group)
- Events