Factor in speed effect to power cooldowns

Previously, the hero ignored power cooldown when their speed was above
100%. This worked fine when our only speed effect was Haste, but not
anymore. Enemies weren't much better, as they always used the same
cooldown regardless of any speed bonuses.

This commit fixes these issues. For example, the hero's melee attack has
a cooldown of 4. If the hero has the Boots of Speed equipped (125% speed
bonus), the melee cooldown becomes `(100/125) * 4`, which rounded off is 3.