• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[Spell] Mana Steal - How to do?

Status
Not open for further replies.
Level 3
Joined
Feb 22, 2013
Messages
22
Hey everyone! I am working on a Blood Elf project right now, that may or may not be released into an open, late Beta soon... but I need help with a spell/ability that I do not really know how to make.

Think of it this way; You want a unit be able to steal mana upon auto-attacking an enemy unit, or creep. Sort of like how life steal works, except... well, mana! How do I do this?
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
You need a damage engine (Preferably Bribe's system: Link). Then whenever that unit attacks, add mana to it through trigger.

EDIT: Example trigger
  • Mana Steal
    • Events
      • Game - DamageEvent becomes Equal to 1.00
    • Conditions
      • (Unit-type of DamageEventSource) Equal to Blood Mage
    • Actions
      • Unit - Set mana of DamageEventSource to ((Mana of DamageEventSource) + 50.00)
 
Status
Not open for further replies.
Top