- Joined
- Aug 1, 2009
- Messages
- 714
You need use a Damage Detection System and trigger the life-steal.
Trigger it you damn lazy bastard. How? Set a variable as to how many masks of death a person has. Make sure that the items have no abilities. Then add the life steal ability with a level of your variable. Like you have 5 masks of death = Level 5 Life steal.
If you just used some stupid logic you wouldn't have to post here...
Don't think you can detect where the damage caused is coming from (spell or attack) unless you trigger all the spells in your map.
An easy way to trigger non-triggered spell is too create a dummy which cast the non-triggered spell. Also replace all the "Make Unit cause XXX damages to OtherUnit" by "Create 1Damage Dummy for owner of Unit. Make Last Created Unit cause XXX damages to OtherUnit"