• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Death Coil with Extra Percentage Heal/Damage

Level 13
Joined
Sep 11, 2013
Messages
468
Greetings!

How can I made Death Coil to give 3% extra percentage damage of max hp of the enemy beside the Death Coil normal damage?
If the target blink or teleport before death coil reach his position, the death coil must dissapear/miss.

ideally the spell will be like this..

Target allowed - AIR / ALLIED / GROUND / STRUCTURE
LVL 1 --- 25 damage + 3% damage of max hp of the enemy
LVL 2 --- 50 damage + 3% damage of max hp of the enemy
LVL 3 --- 75 damage + 3% damage of max hp of the enemy
LVL 4 --- 100 damage + 3% damage of max hp of the enemy

Optionally - I prefer that the Death Coil must heal the allies with the same damage per level + 3% of ally max hp (if the target will be an ally)

I have no idea how to create this spell. :peasant-sad:

The help will be appreaciated!
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,886
You can have a unique Dummy unit cast Death Coil instead of your Hero. Then use a Damage Event to detect when a unit takes damage from this spell:
  • Events
    • Unit - A unit Takes damage
  • Conditions
    • (Unit-type of (Damage source)) Equal to Death Coil Dummy
  • Actions
    • ...
This assumes that a Damage Event runs when an Ally is hit by Death Coil. I'm pretty sure that it will...

Then in the Actions you would use an If Then Else to determine if the (Damage Target) is an Ally or Enemy, and modify the Heal/Damage depending on the outcome. The math for calculating the bonus amount is pretty simple, just multiply the target's Max Life by 0.03.
  • Set Variable BonusAmount = (Max life of (Damage Target) x 0.03)
However, the issue with this design is that your Dummy unit will be the source of the damage and get the kill credit, not your hero. This could cause issues for your other triggers that rely on "A unit Dies" or "A unit Takes damage", if you have any.

For example, if you had an Ability Power system for scaling Hero spell damage, or a reward system for when a Hero gets a kill, both could fail because it's the Dummy unit casting Death Coil and not the Hero. In other words, if your trigger's Conditions expect a Hero then they won't work.

Alternatively, you could trigger everything yourself using this:
An example of it in use:
 
Last edited:
Top