Lifesteal Ability

Kyuft

Member
Reaction score
11
Is there a way to make a lifesteal ability in data? Like, Unit deals 200 damage and gets healed for 100 health (50% lifesteal)?

-Kyuft:shades:
 

Dave312

Censored for your safe viewing
Reaction score
269
Give the unit a Buff type behaviour and use the Vital Leeched from Damage Dealt property located under the Combat tab in the Behaviour: Modification + property. You can set the amount leeched depending on the type of damage (melee, ranged, spell or splash). A value of 1 means 100% leeched.
 

Kyuft

Member
Reaction score
11
I want it to be an ability, like unit hits target for 100 dmg, receiving 50% of the dmg dealt in health. Could I just make a validator that checks if the dmg was dealt by this ability?

-Kyuft:shades:
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
I'm sorry for not trying this out first, but I would guess the Effect: Leech fraction field in the damage effect would do what you want.
 

Kyuft

Member
Reaction score
11
I'll look at it when I get home from school, sounds like what I'm looking for. Anyways, thanks!

-Kyuft:shades:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top