Actually, I found it easier to just do it like this:
The unit "Avatar" would have an ability based off Detonate.
The only problem is that this can be cast on buildings, making them impossible to harvest from, and a general nuisance. Another problem that will occur is if the "Avatar" unit dies from any other cause other than Detonate.
Trigger:
- Grow Tree
- Events
- Unit - A unit Dies
- Conditions
- (Unit-type of (Triggering unit)) Equal to Avatar
- Actions
- Destructible - Create a Summer Tree Wall at (Position of (Triggering unit)) facing (Random angle) with scale 1.00 and variation 0
- Animation - Play (Last created destructible)'s birth animation
- Events
The unit "Avatar" would have an ability based off Detonate.
The only problem is that this can be cast on buildings, making them impossible to harvest from, and a general nuisance. Another problem that will occur is if the "Avatar" unit dies from any other cause other than Detonate.