Trying to make aoe spell that does 200 damage and + 10 for every unit in point. it works as it should the first time, but i cant clear the unit group and the damage keeps increasing.
- conditions
- (Unit-type of (Damage source)) Equal to Sorceress (dummy)
- actions
- Unit Group - Pick every unit in (Units within 200.00 of tempoddtargdummy matching (((Triggering unit) is alive) Equal to True)) and do (Unit Group - Add (Picked unit) to tempgroupodd)
- Event Response - Set Damage of Unit Damaged Event to (((Real((Number of units in tempgroupodd))) x 10.00) + 200.00)
- Custom script: call RemoveLocation( udg_tempoddtargdummy )
- Countdown Timer - Start cd as a One-shot timer that will expire in 3.00 seconds
- Time - cd expires
- Unit Group - Remove all units from tempgroupodd
- Unit - A unit Dies
- (Owner of (Triggering unit)) Equal to Player 2 (Blue)
- Unit Group - Remove (Triggering unit) from tempgroupodd
Attachments
Last edited: