Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
Hi i created a spell that deal damage to an target area to enemies and i need to figure out how to make it to heal the allies in the same area with half of that damage. Thank you
set group = Units in range matching (matching unit) is alive
Pick units in group
--if - conditions
----picked unit belongs to an enemy
--then
----damage unit by x
--else
----heal unit by x/2
--endif
Let's say your spell does 200 dmg at first level, 300 at second, 400 at third and so on and it has an area of 300.
AOE Heal
Events
Unit - A unit finishes casting a spell
Conditions
(Ability being cast) equals <<Your AOE spell>>
Actions
Unit Group - Pick every unit in (Units within 300.00 of (Target point of ability being cast) matching ((Owner of (Matching unit)) equals (Owner of (Casting unit)))) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to (Life of (Picked unit)) + ((50.00 x (Real((Level of (Ability being cast) for (Casting unit))))) + 100.00))
I know it's better to make udg_TempGroup and the null it, but I'm too lazy with GUI ^^
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.