Hello, working on my first map and need some help with a skill. The problem is that the skill is controlled by triggers and therefore doesn't give xp when a unit is killed with it, i can't figure out a way to give the killing hero and his allies xp for the kill.
This is how the skill looks like:
Thanks in advance.
This is how the skill looks like:
Code:
nerve poison
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Nerve Poison
Actions
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) - ((Max mana of (Target unit of ability being cast)) - (Mana of (Target unit of ability being cast))))