This is the spell:
When you're above X health event Y happens
Otherwise, event Z happens
The spell itself is easy to code, the problem is I would like the icon to change when the unit goes underneath X health from above X health, or goes above X health from under X health. The way I have it now there are two abilities, each with a different icon, and when one of the two above described things happen, the other ability is removed and the new one is added. The problem is these two skills do not share a cooldown, and I would like them to.
Summary: When one ability is removed and another ability is to be added, how can you keep the cooldown of the second ability the same as the first?
When you're above X health event Y happens
Otherwise, event Z happens
The spell itself is easy to code, the problem is I would like the icon to change when the unit goes underneath X health from above X health, or goes above X health from under X health. The way I have it now there are two abilities, each with a different icon, and when one of the two above described things happen, the other ability is removed and the new one is added. The problem is these two skills do not share a cooldown, and I would like them to.
Summary: When one ability is removed and another ability is to be added, how can you keep the cooldown of the second ability the same as the first?