Yoshii
New Member
- Reaction score
- 74
I made a spell that summon 4 angel on each side of the hero and instantly kill everything in a radius however when i do the spell on the enemy unit it work but i do not gain any xp nor money from the kill.I think its cuz my hero(casting unit) die at same time as the enemy so i do not gain anything, is there a way to fix this?Bounty work when I kill them normaly
Code:
HeavenStrike Level 1
Events
Unit - A unit Finishes casting an ability
Conditions
(Level of Heaven Strike for (Casting unit)) Equal to 1
(Ability being cast) Equal to Heaven Strike
Actions
Unit - Create 1 Footman for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by (256.00, 0.00)) facing (Position of (Triggering unit))
Unit - Create 1 Footman for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by (-256.00, 0.00)) facing (Position of (Triggering unit))
Unit - Create 1 Footman for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by (0.00, 256.00)) facing (Position of (Triggering unit))
Unit - Create 1 Footman for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by (0.00, -256.00)) facing (Position of (Triggering unit))
Wait 1.00 seconds
Unit Group - Pick every unit in (Units within 257.00 of (Position of (Casting unit)) matching (((Matching unit) is A structure) Equal to False)) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)