Fix bug 1482:

- put powers on cooldown only when they are used succedsfully