Onnings
New Member
- Reaction score
- 9
Right, I have a few abilities that, in addition to their normal effect, cause damage based on a picked hero stat. The trigger works perfectly and nothing's wrong really, but after I got NewGenWE, an error message keeps popping up when I fire the ability. The error message I'm getting is:
double free of group in "Trig_Ravage_Actions"
This error message only displays when the triggered abiltiy hits enemy units though - just executing the ability without hitting any enemies returns no error message.
Anybody have a clue what this means, and what causes it?
double free of group in "Trig_Ravage_Actions"
This error message only displays when the triggered abiltiy hits enemy units though - just executing the ability without hitting any enemies returns no error message.
Anybody have a clue what this means, and what causes it?
Code:
Ravage
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Ravage
Actions
Set Herostat = (Strength of (Casting unit) (Include bonuses))
Set Temp_Attack = (Position of (Triggering unit))
Set Group = (Units within 200.00 of Temp_Attack matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Equal to True))
Unit Group - Pick every unit in Group and do (Unit - Cause (Casting unit) to damage (Picked unit), dealing (Real(Herostat)) damage of attack type Spells and damage type Normal)
Custom script: call RemoveLocation (udg_Temp_Attack)
Custom script: call DestroyGroup(udg_Group)