• 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.

Lifesteal Effect

Status
Not open for further replies.
Level 6
Joined
May 13, 2005
Messages
164
How do I make the ability whereby when a unit (attacking unit) attacks another specific unit (attacked unit) with a certain buff, the attacking unit regains health?

I dont wanna make use of the "Unit is Attacked" event as it only detects when the attack is initiated and before it is hit and therefore may cause abuses as in, the player controlling the attacking unit can just repeatedly press stop while the unit attacks to regain health by initiating more attacks without hitting the target.

Example: DotA's Naix's Open Wound ability. Units that attack the target with the Open Wound buff can regain a percentage of their life depending on their attack damage.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Just a guess... it gives temporary Item Life Steal ability when attack starts
removes when attack ends
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Triggers make more sense but
Well for detecting normal attack you need slow poison
in unit takes damage event you check for slow poison buff and do things
but slow poison doesnt work with incinerate
Check if Sand King steals life on a buffed enemy while he has poison sting ability
Or Fulborg warrior with open wound thing
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
Incinerate is a very buggy orb effect that even disables the slow poison
Nothing else disables slow poison (orb of slow - orb of lightning - orb of fire - mask of death)
 
Status
Not open for further replies.
Top