Marsmallos
Member
- Reaction score
- 17
Hello!
I want to trigger a spell that acts in a way identical to rejuvination.
It would be something like this:
This makes my spell MUI, but, unfortunately it is stackable this way (as far as I can see) and I dont want that. If I cast rejuvination on the same target again before an earlier rejuvination has expired, I want the new rejuvination to overwrite the old rejuvination.
However, as far as I can see like the trigger is now, the two rejuvinations will simply stack on top of each other, thus naturally healing a double amount of what a single rejuvination would do, and I absolutely do not want that.
In short, this is how the spell should work:
It is a healing over time effect, meaning that it will heal a certain amount every x seconds for z seconds
It must be MUI
It must not be possible to stack on the same target but
Recasting it on the same target must refresh the duration of the healing over time effect
It must be triggered, using existing spells is not an option
What do I need to add/change in my trigger to make my rejuvination MUI but non-stackable on the same unit? (Keep in mind that several units might be on the battlefield casting rejuvination at the same time on the same/different targets)
Rep will of course be rewarded
I want to trigger a spell that acts in a way identical to rejuvination.
It would be something like this:
Trigger:
- Events
- A unit starts the effect of an bility
- Conditions
- (Ability being cast) equal to RejuvinationTargettingSpell
- Actions
- custom script: local unit udg_RejuvinationTarget
- set RejuvinationTarget = Target unit of ability being cast
- For each integer A from 1 to 7, do actions
- loop - actions
- Unit - set life of RejuvinationTarget to (Life of RejuvinationTarget + 20)
- wait 1,00 seconds
- loop - actions
- custom script: set udg_RejuvinationTarget = null
This makes my spell MUI, but, unfortunately it is stackable this way (as far as I can see) and I dont want that. If I cast rejuvination on the same target again before an earlier rejuvination has expired, I want the new rejuvination to overwrite the old rejuvination.
However, as far as I can see like the trigger is now, the two rejuvinations will simply stack on top of each other, thus naturally healing a double amount of what a single rejuvination would do, and I absolutely do not want that.
In short, this is how the spell should work:
It is a healing over time effect, meaning that it will heal a certain amount every x seconds for z seconds
It must be MUI
It must not be possible to stack on the same target but
Recasting it on the same target must refresh the duration of the healing over time effect
It must be triggered, using existing spells is not an option
What do I need to add/change in my trigger to make my rejuvination MUI but non-stackable on the same unit? (Keep in mind that several units might be on the battlefield casting rejuvination at the same time on the same/different targets)
Rep will of course be rewarded