xPheRe
New Member
- Reaction score
- 43
I'm trying to create my first triggered spell and I'm having a lot of problems.
What the ability does?
It increases hero damage 10% for every corpse in a radius, its duration is 20 seconds.
What I've done?
Firstly I based the ability from channel and read the tutorial.
Then, I created one item ability with 10 levels based on Efectiviness aura. Every level improves damage a 10% more than previos level.
Then the trigger part, I created one that triggers when a unit starts the effect of the ability, and then add the item ability to the caster. Then for every near corpse it increases its level to a maximum of 10.
What's the problem?
When tested, the unit begins channeling (not casting), then acquires the item ability from the trigger (and it is shown in the interface, that's not what I want) and continues channeling the ability until the player moves the unit (didn't want that too).
The corpse thing goes OK. I've coded a func in JASS that returns how many corpses are in a range from the caster. Then the trigger applies "Increase level of ability..." in a loop.
The spell remains active because I can't find an event such as "An ability expires" to remove the item ability from the unit.
Anyone can help me?
What the ability does?
It increases hero damage 10% for every corpse in a radius, its duration is 20 seconds.
What I've done?
Firstly I based the ability from channel and read the tutorial.
Then, I created one item ability with 10 levels based on Efectiviness aura. Every level improves damage a 10% more than previos level.
Then the trigger part, I created one that triggers when a unit starts the effect of the ability, and then add the item ability to the caster. Then for every near corpse it increases its level to a maximum of 10.
What's the problem?
When tested, the unit begins channeling (not casting), then acquires the item ability from the trigger (and it is shown in the interface, that's not what I want) and continues channeling the ability until the player moves the unit (didn't want that too).
The corpse thing goes OK. I've coded a func in JASS that returns how many corpses are in a range from the caster. Then the trigger applies "Increase level of ability..." in a loop.
The spell remains active because I can't find an event such as "An ability expires" to remove the item ability from the unit.
Anyone can help me?