- Joined
- May 25, 2021
- Messages
- 407
My lord, could you please make it able to heal nearby ally units as well? 

Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
(0 ratings)
Approved
In HealB Effect, you can do this yourself inside of the Then - Actions block.My lord, could you please make it able to heal nearby ally units as well?![]()
Set TP = (Position of HealB_Unit)
Set TPlay = (Owner of HealB_Unit)
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within RANGE of TP) and do (Actions)

Loop - Actions


Set TU = (Picked Unit)


If (All conditions are true) then do (Then actions) else do (Else actions)



If - Conditions




(TU belongs to an ally of TPlay) equal to True




(TU is Alive) equal to true




(TU is Mechanical) equal to False




TU not equal to HealB_Unit



Then - Actions




Unit - Set life of TU to ((Life of TU) + (HealB_Amount[HealB_Level] x HealB_Damage))




Special Effect - Create a special effect attached to the HealB_SFXAttach of TU using HealB_SFX




Special Effect - Destroy (Last created special effect)



Else - Actions
Custom script: call RemoveLocaton(udg_TP)
Sorry sir, but I have no idea what you are talking about. I have no knowledge of coding or variables ...In HealB Effect, you can do this yourself inside of the Then - Actions block.
Set TP = (Position of HealB_Unit)
Set TPlay = (Owner of HealB_Unit)
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within RANGE of TP) and do (Actions)
Loop - Actions
Set TU = (Picked Unit)
If (All conditions are true) then do (Then actions) else do (Else actions)
If - Conditions
(TU belongs to an ally of TPlay) equal to True
(TU is Alive) equal to true
(TU is Mechanical) equal to False
TU not equal to HealB_Unit
Then - Actions
Unit - Set life of TU to ((Life of TU) + (HealB_Amount[HealB_Level] x HealB_Damage))
Special Effect - Create a special effect attached to the HealB_SFXAttach of TU using HealB_SFX
Special Effect - Destroy (Last created special effect)
Else - Actions
Custom script: call RemoveLocaton(udg_TP)
TP is a point variable while TU is a unit variable.Sorry sir, but I have no idea what you are talking about. I have no knowledge of coding or variables ...
Take your timeTP is a point variable while TU is a unit variable.
What you requested is a re-adaptation of this spell. I can provide the request, though give me some time since I am extremely occupied at this time of the year.
(Personally, the code provided by Pyrogasm is exactly the expansion needed, and it can be considered a much faster option than waiting for my update)

Please check Healing Blows v1.1 if this suits your need.Take your time![]()
Thanks for the heads up. I'll update it soon.Great ability but didn't you forgot to triggering the chance of the ability to proc? Atm it seems like it procs all the time.
I meant when A1 hits B, A2 will be healed (like Kharazim). But, still, thank you for listening and trying to help.Please check Healing Blows v1.1 if this suits your need.
Huh? What do you mean by that?I meant when A1 hits B, A2 will be healed (like Kharazim). But, still, thank you for listening and trying to help.![]()
It means, for example, when a hero attacks an enemy there is a chance (a number of or all of) the hero's allies around him get healed.Huh? What do you mean by that?
You just need to edit the value in the configuration for v1.1.1 to get thisIt means, for example, when a hero attacks an enemy there is a chance (a number of or all of) the hero's allies around him get healed.
You just need to edit the value in the configuration for v1.1.1 to get this
Interesting!Literally put my code block in your trigger and it will be exactly what they want. (Heal all nearby allies when the proc happens.)

