I'm making a mage arena type game. In this game, 8 people choose 4 spells and 2 passives at the beginning of each round, then fight for about 30 seconds. In order to facilitate the use of hotkeys I've actually made 4 versions of each spell, each with X,C,V, or B as a hotkey. Obviously, those abilities take up the bottom 4 ability slots with X being the leftmost, B being the rightmost, etc.
I want to make an unit targeted ability called "Crush Magic" that channels for 1 second, then causes 20 damage to the target if the target is still in range. Additionally, I want a random enemy spell to be disabled for 6 seconds. Ideally, this spell would be replaced with a dummy passive called "Spell Disabled" in the same slot.
I have everything working except that I don't know how to select a random ability and remove it, let alone return it without reseting its cooldown. Does anyone know how to do this?
I want to make an unit targeted ability called "Crush Magic" that channels for 1 second, then causes 20 damage to the target if the target is still in range. Additionally, I want a random enemy spell to be disabled for 6 seconds. Ideally, this spell would be replaced with a dummy passive called "Spell Disabled" in the same slot.
I have everything working except that I don't know how to select a random ability and remove it, let alone return it without reseting its cooldown. Does anyone know how to do this?