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

Need help with item ability "Steal"

Status
Not open for further replies.
Level 8
Joined
Jul 17, 2004
Messages
283
For some reason the item ability "Steal", by default, drains the HP or MP from the target unit, but hurts the casting unit. I'm absorbing HP with it, not MP. How do I fix this so it drains from the target unit, and gives that life to the casting unit in a positive way instead of hurting?
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
this is buggy but but hopefully you get the point
  • Melee Initialization
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Level of Attribute Bonus for (Attacking unit)) Greater than 0
    • Actions
      • Set caster = (Attacking unit)
      • Set target = (Attacked unit)
      • Unit - Set life of caster to ((Life of caster) + 1.00)
      • Unit - Set life of target to ((Life of target) - 1.00)
 
Level 8
Joined
Jul 17, 2004
Messages
283
Yep, it is hard coded, just as you suggested, deathismyfriend. I triggered it. Thanks for the help guys.
 
Status
Not open for further replies.
Top