• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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