- Joined
- Jan 6, 2005
- Messages
- 137
Hey, i tried making this myself, and i just dont see why it dosen't work, to me it seems kinda simple.. yet.. dosen't work .. well, i wan't an abillity that gives the hero 2%,4%,6%,8% and10% of it's damage it deals to enemies to its own mana, so that if it deals 100 damage, it will at level 5 give the hero 10 mana, now.. here is what i did
Event:
Any unit is attacked
Conditions:
Level of (mana burn spell dummy) is greater or equal to 1
Type of attacking unit Equal to (Hero type)
Actions:
Set Variable (lifeoftarget) to life of attaced unit
wait 0.5 seconds
set attacking units mana to (lifeoftarget) - (life of attacked unit*(level of (spell dummy for (hero))*0.02)
Set Variable (lifeoftarget) to life of attaced unit
Event:
Any unit is attacked
Conditions:
Level of (mana burn spell dummy) is greater or equal to 1
Type of attacking unit Equal to (Hero type)
Actions:
Set Variable (lifeoftarget) to life of attaced unit
wait 0.5 seconds
set attacking units mana to (lifeoftarget) - (life of attacked unit*(level of (spell dummy for (hero))*0.02)
Set Variable (lifeoftarget) to life of attaced unit