Updated teleport checking to check for portal events and follow the same action.