ive tried to create an ability like blinkstrike in dota, but i can either have it a) the teleport works but the ability doesnt cooldown or b) the teleport doesnt work and the cooldown does. i have the ability based off chain lightning (and fixed it so its only 1 target).
how exactly would i write that into my game? can you give me an example of that (either a test map or just a text example) cuz im not very good with custom scripts/jass
Events: a unit casts a spell Conditions: Ability being cast is equal to blinkstrike actions: -move casting unit instantly to position of targeted unit of ability being cast -cause casting unit to damage targeted unit dealing X damage of type chaos and damage type universal