made cooldown work on custom portals.