Nivius
TH.net Regular
- Reaction score
- 5
that dont work. the ability is only gona exist on 1 unit and the ability is an aura. so i cannot use "(Level of *ability* for (Damage source))" as this indicates that the unit that does the damage have the ability. witch he prob do not have. if it was possible to make that line u made to instead somehow get the level of the skill to change the amount of mana stolenChange your Spiritual Aura trigger into this:
Code:Spiritual Aura Events Conditions ((Damage source) is A Hero) Equal to True Or - Any (Conditions) are true Conditions ((Damage source) has buff Spiritual Aura (lvl1)) Equal to True ((Damage source) has buff Spiritual Aura (lvl2)) Equal to True ((Damage source) has buff Spiritual Aura (lvl3)) Equal to True ((Damage source) has buff Spiritual Aura (lvl4)) Equal to True ((Damage source) has buff Spiritual Aura (lvl5)) Equal to True ((Damage source) has buff Spiritual Aura (lvl6)) Equal to True ((Damage source) has buff Spiritual Aura (lvl7)) Equal to True ((Damage source) has buff Spiritual Aura (lvl8)) Equal to True ((Damage source) has buff Spiritual Aura (lvl9)) Equal to True Actions Unit - Set mana of (Damage source) to ((Mana of (Damage source)) + (((Damage taken) / 100.00) x [B](Level of *ability* for (Damage source))[/B]))
That doesn't matter.
I'm kinda starting to think if i cannot make the ability when leveled to put the level of the ability into an int and then i extract that value every time someone attack?
I'm still interested in a more effective code that works, also i kinda need to get it working for ranged units