- Joined
- Oct 28, 2016
- Messages
- 22
Hello, I made a custom spell which fires 2 skillshots in a cone at once, but the spell is dealing damage on each loop. I set it to give enemies in AoE to "damaged group" and don't let them to take damage again, but the spell is still dealing damage on each loop. Here is the loop trigger:
Events: Every 0.03 sec of game time
Actoins:
For each integer from 1 to 2 do actions:
if then else
"DamagedGroup" is destroyed in the "cast" trigger only.
I was even looking for some other skillshot spells in the hive and I did the same, but it is still bugged .(
Any help?
Events: Every 0.03 sec of game time
Actoins:
For each integer from 1 to 2 do actions:
(Locations setup)
set bj_wantDestroyGroup = true
pick every units in (units within 128 of temploc2 matching (is in DamagedGroup[forLoopAindex] = false; is structure = false; belongs to enemy of dummy = true; is alive = true) and do actions
set DistancePassed = (DistancePassed - 28)set bj_wantDestroyGroup = true
pick every units in (units within 128 of temploc2 matching (is in DamagedGroup[forLoopAindex] = false; is structure = false; belongs to enemy of dummy = true; is alive = true) and do actions
add picked unit to DamagedGroup [forLoopAindex]
deal damage
move dummydeal damage
if then else
if DistancePassed < 0
then
then
turn off this trigger
(some booleans setup for other spells, they don't contain destroying of DamagedGroup)"DamagedGroup" is destroyed in the "cast" trigger only.
I was even looking for some other skillshot spells in the hive and I did the same, but it is still bugged .(
Any help?